@fluidattacks/design 1.2.26 → 1.2.28
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/design.js +333 -180
- package/dist/design.mjs +3869 -3422
- package/dist/src/components/@core/types.d.ts +3 -1
- package/dist/src/components/button/types.d.ts +2 -0
- package/dist/src/components/container/styles.d.ts +2 -0
- package/dist/src/components/container/types.d.ts +2 -0
- package/dist/src/components/content-card/category-tag/index.d.ts +5 -0
- package/dist/src/components/content-card/event-date/index.d.ts +1 -2
- package/dist/src/components/content-card/index.d.ts +1 -1
- package/dist/src/components/content-card/styles.d.ts +1 -1
- package/dist/src/components/content-card/types.d.ts +21 -25
- package/dist/src/components/content-card-carousel/scroll-buttons/index.d.ts +2 -0
- package/dist/src/components/content-card-carousel/styles.d.ts +2 -0
- package/dist/src/components/content-card-carousel/types.d.ts +16 -0
- package/dist/src/components/form/index.d.ts +5 -0
- package/dist/src/components/form/styles.d.ts +4 -0
- package/dist/src/components/form/types.d.ts +15 -0
- package/dist/src/components/icon/types.d.ts +1 -4
- package/dist/src/components/icon-button/index.d.ts +3 -0
- package/dist/src/components/icon-button/styles.d.ts +9 -0
- package/dist/src/components/icon-button/types.d.ts +22 -0
- package/dist/src/components/inputs/fields/phone/index.d.ts +1 -1
- package/dist/src/components/inputs/index.d.ts +2 -2
- package/dist/src/components/typography/styles.d.ts +3 -0
- package/dist/src/components/typography/types.d.ts +4 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/utils/open-url.d.ts +1 -0
- package/package.json +15 -14
package/dist/design.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.\\!visible{visibility:visible!important}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-\\[500px\\]{height:500px}.w-full{width:100%}.max-w-72{max-width:18rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.self-stretch{align-self:stretch}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-12{padding-left:3rem;padding-right:3rem}.px-8{padding-left:2rem;padding-right:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-\\[90px\\]{padding-top:90px;padding-bottom:90px}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@property --animate-position{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --border-angle{syntax: "<angle>"; initial-value: 0deg; inherits: false;}@property --color-1{syntax: "<color>"; initial-value: #f32637; inherits: false;}@property --color-2{syntax: "<color>"; initial-value: #b8075d; inherits: false;}@property --btn-padding-x{syntax: "<length>"; initial-value: 16px; inherits: false;}@property --btn-padding-y{syntax: "<length>"; initial-value: 10px; inherits: false;}@property --btn-spacing{syntax: "<length>"; initial-value: 8px; inherits: false;}@property --grid-columns{syntax: "<number>"; initial-value: 12; inherits: false;}@property --grid-width{syntax: "<length>"; initial-value: 1440px; inherits: false;}@property --angle-grad{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --opacity-grad{syntax: "<number>"; initial-value: 0; inherits: false;}@keyframes spinAnimation{to{--border-angle: 360deg}}@keyframes gradientAnimation{0%{--animate-position: 45deg}33%{--animate-position: -50deg}66%{--animate-position: -100deg}to{--animate-position: 45deg}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),ji=require("react-dom"),Ql=require("react-router-dom");function js(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const dt=js(g),Kl=js(ji),Ps=e=>({getVariant:(t,r)=>e(t)[r]}),Ds=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"];var pt=function(){return pt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},pt.apply(this,arguments)};function Ir(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Jl(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Xl=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Zl=Jl(function(e){return Xl.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Rn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pe="-ms-",tn="-moz-",xe="-webkit-",Ms="comm",so="rule",Pi="decl",eu="@import",Ls="@keyframes",tu="@layer",Ns=Math.abs,Di=String.fromCharCode,ei=Object.assign;function ru(e,t){return et(e,0)^45?(((t<<2^et(e,0))<<2^et(e,1))<<2^et(e,2))<<2^et(e,3):0}function Fs(e){return e.trim()}function nr(e,t){return(e=t.exec(e))?e[0]:e}function de(e,t,r){return e.replace(t,r)}function Ln(e,t,r){return e.indexOf(t,r)}function et(e,t){return e.charCodeAt(t)|0}function Mr(e,t,r){return e.slice(t,r)}function Jt(e){return e.length}function Vs(e){return e.length}function en(e,t){return t.push(e),e}function nu(e,t){return e.map(t).join("")}function ba(e,t){return e.filter(function(r){return!nr(r,t)})}var co=1,Lr=1,zs=0,Bt=0,Ue=0,Wr="";function lo(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:co,column:Lr,length:a,return:"",siblings:s}}function ar(e,t){return ei(lo("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Tr(e){for(;e.root;)e=ar(e.root,{children:[e]});en(e,e.siblings)}function ou(){return Ue}function iu(){return Ue=Bt>0?et(Wr,--Bt):0,Lr--,Ue===10&&(Lr=1,co--),Ue}function Gt(){return Ue=Bt<zs?et(Wr,Bt++):0,Lr++,Ue===10&&(Lr=1,co++),Ue}function br(){return et(Wr,Bt)}function Nn(){return Bt}function uo(e,t){return Mr(Wr,e,t)}function ti(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function au(e){return co=Lr=1,zs=Jt(Wr=e),Bt=0,[]}function su(e){return Wr="",e}function Bo(e){return Fs(uo(Bt-1,ri(e===91?e+2:e===40?e+1:e)))}function cu(e){for(;(Ue=br())&&Ue<33;)Gt();return ti(e)>2||ti(Ue)>3?"":" "}function lu(e,t){for(;--t&&Gt()&&!(Ue<48||Ue>102||Ue>57&&Ue<65||Ue>70&&Ue<97););return uo(e,Nn()+(t<6&&br()==32&&Gt()==32))}function ri(e){for(;Gt();)switch(Ue){case e:return Bt;case 34:case 39:e!==34&&e!==39&&ri(Ue);break;case 40:e===41&&ri(e);break;case 92:Gt();break}return Bt}function uu(e,t){for(;Gt()&&e+Ue!==57;)if(e+Ue===84&&br()===47)break;return"/*"+uo(t,Bt-1)+"*"+Di(e===47?e:Gt())}function du(e){for(;!ti(br());)Gt();return uo(e,Bt)}function fu(e){return su(Fn("",null,null,null,[""],e=au(e),0,[0],e))}function Fn(e,t,r,n,o,i,a,s,c){for(var u=0,f=0,y=a,m=0,v=0,w=0,_=1,O=1,$=1,C=0,P="",I=o,M=i,k=n,T=P;O;)switch(w=C,C=Gt()){case 40:if(w!=108&&et(T,y-1)==58){Ln(T+=de(Bo(C),"&","&\f"),"&\f",Ns(u?s[u-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:T+=Bo(C);break;case 9:case 10:case 13:case 32:T+=cu(w);break;case 92:T+=lu(Nn()-1,7);continue;case 47:switch(br()){case 42:case 47:en(pu(uu(Gt(),Nn()),t,r,c),c);break;default:T+="/"}break;case 123*_:s[u++]=Jt(T)*$;case 125*_:case 59:case 0:switch(C){case 0:case 125:O=0;case 59+f:$==-1&&(T=de(T,/\f/g,"")),v>0&&Jt(T)-y&&en(v>32?xa(T+";",n,r,y-1,c):xa(de(T," ","")+";",n,r,y-2,c),c);break;case 59:T+=";";default:if(en(k=wa(T,t,r,u,f,o,s,P,I=[],M=[],y,i),i),C===123)if(f===0)Fn(T,t,k,k,I,i,y,s,M);else switch(m===99&&et(T,3)===110?100:m){case 100:case 108:case 109:case 115:Fn(e,k,k,n&&en(wa(e,k,k,0,0,o,s,P,o,I=[],y,M),M),o,M,y,s,n?I:M);break;default:Fn(T,k,k,k,[""],M,0,s,M)}}u=f=v=0,_=$=1,P=T="",y=a;break;case 58:y=1+Jt(T),v=w;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&iu()==125)continue}switch(T+=Di(C),C*_){case 38:$=f>0?1:(T+="\f",-1);break;case 44:s[u++]=(Jt(T)-1)*$,$=1;break;case 64:br()===45&&(T+=Bo(Gt())),m=br(),f=y=Jt(P=T+=du(Nn())),C++;break;case 45:w===45&&Jt(T)==2&&(_=0)}}return i}function wa(e,t,r,n,o,i,a,s,c,u,f,y){for(var m=o-1,v=o===0?i:[""],w=Vs(v),_=0,O=0,$=0;_<n;++_)for(var C=0,P=Mr(e,m+1,m=Ns(O=a[_])),I=e;C<w;++C)(I=Fs(O>0?v[C]+" "+P:de(P,/&\f/g,v[C])))&&(c[$++]=I);return lo(e,t,r,o===0?so:s,c,u,f,y)}function pu(e,t,r,n){return lo(e,t,r,Ms,Di(ou()),Mr(e,2,-2),0,n)}function xa(e,t,r,n,o){return lo(e,t,r,Pi,Mr(e,0,n),Mr(e,n+1,-1),n,o)}function Bs(e,t,r){switch(ru(e,t)){case 5103:return xe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xe+e+e;case 4789:return tn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xe+e+tn+e+Pe+e+e;case 5936:switch(et(e,t+11)){case 114:return xe+e+Pe+de(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xe+e+Pe+de(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xe+e+Pe+de(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return xe+e+Pe+e+e;case 6165:return xe+e+Pe+"flex-"+e+e;case 5187:return xe+e+de(e,/(\w+).+(:[^]+)/,xe+"box-$1$2"+Pe+"flex-$1$2")+e;case 5443:return xe+e+Pe+"flex-item-"+de(e,/flex-|-self/g,"")+(nr(e,/flex-|baseline/)?"":Pe+"grid-row-"+de(e,/flex-|-self/g,""))+e;case 4675:return xe+e+Pe+"flex-line-pack"+de(e,/align-content|flex-|-self/g,"")+e;case 5548:return xe+e+Pe+de(e,"shrink","negative")+e;case 5292:return xe+e+Pe+de(e,"basis","preferred-size")+e;case 6060:return xe+"box-"+de(e,"-grow","")+xe+e+Pe+de(e,"grow","positive")+e;case 4554:return xe+de(e,/([^-])(transform)/g,"$1"+xe+"$2")+e;case 6187:return de(de(de(e,/(zoom-|grab)/,xe+"$1"),/(image-set)/,xe+"$1"),e,"")+e;case 5495:case 3959:return de(e,/(image-set\([^]*)/,xe+"$1$`$1");case 4968:return de(de(e,/(.+:)(flex-)?(.*)/,xe+"box-pack:$3"+Pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xe+e+e;case 4200:if(!nr(e,/flex-|baseline/))return Pe+"grid-column-align"+Mr(e,t)+e;break;case 2592:case 3360:return Pe+de(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,nr(n.props,/grid-\w+-end/)})?~Ln(e+(r=r[t].value),"span",0)?e:Pe+de(e,"-start","")+e+Pe+"grid-row-span:"+(~Ln(r,"span",0)?nr(r,/\d+/):+nr(r,/\d+/)-+nr(e,/\d+/))+";":Pe+de(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return nr(n.props,/grid-\w+-start/)})?e:Pe+de(de(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return de(e,/(.+)-inline(.+)/,xe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Jt(e)-1-t>6)switch(et(e,t+1)){case 109:if(et(e,t+4)!==45)break;case 102:return de(e,/(.+:)(.+)-([^]+)/,"$1"+xe+"$2-$3$1"+tn+(et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ln(e,"stretch",0)?Bs(de(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return de(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,s,c,u){return Pe+o+":"+i+u+(a?Pe+o+"-span:"+(s?c:+c-+i)+u:"")+e});case 4949:if(et(e,t+6)===121)return de(e,":",":"+xe)+e;break;case 6444:switch(et(e,et(e,14)===45?18:11)){case 120:return de(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+xe+(et(e,14)===45?"inline-":"")+"box$3$1"+xe+"$2$3$1"+Pe+"$2box$3")+e;case 100:return de(e,":",":"+Pe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return de(e,"scroll-","scroll-snap-")+e}return e}function qn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function hu(e,t,r,n){switch(e.type){case tu:if(e.children.length)break;case eu:case Pi:return e.return=e.return||e.value;case Ms:return"";case Ls:return e.return=e.value+"{"+qn(e.children,n)+"}";case so:if(!Jt(e.value=e.props.join(",")))return""}return Jt(r=qn(e.children,n))?e.return=e.value+"{"+r+"}":""}function gu(e){var t=Vs(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function yu(e){return function(t){t.root||(t=t.return)&&e(t)}}function mu(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Pi:e.return=Bs(e.value,e.length,r);return;case Ls:return qn([ar(e,{value:de(e.value,"@","@"+xe)})],n);case so:if(e.length)return nu(r=e.props,function(o){switch(nr(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Tr(ar(e,{props:[de(o,/:(read-\w+)/,":"+tn+"$1")]})),Tr(ar(e,{props:[o]})),ei(e,{props:ba(r,n)});break;case"::placeholder":Tr(ar(e,{props:[de(o,/:(plac\w+)/,":"+xe+"input-$1")]})),Tr(ar(e,{props:[de(o,/:(plac\w+)/,":"+tn+"$1")]})),Tr(ar(e,{props:[de(o,/:(plac\w+)/,Pe+"input-$1")]})),Tr(ar(e,{props:[o]})),ei(e,{props:ba(r,n)});break}return""})}}var vu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$r=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ws="active",Us="data-styled-version",fo="6.1.13",Ii=`/*!sc*/
|
|
3
|
-
`,
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.\\!visible{visibility:visible!important}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-\\[500px\\]{height:500px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-72{max-width:18rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.self-stretch{align-self:stretch}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-12{padding-left:3rem;padding-right:3rem}.px-8{padding-left:2rem;padding-right:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-\\[90px\\]{padding-top:90px;padding-bottom:90px}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@property --animate-position{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --border-angle{syntax: "<angle>"; initial-value: 0deg; inherits: false;}@property --color-1{syntax: "<color>"; initial-value: #f32637; inherits: false;}@property --color-2{syntax: "<color>"; initial-value: #b8075d; inherits: false;}@property --btn-padding-x{syntax: "<length>"; initial-value: 16px; inherits: false;}@property --btn-padding-y{syntax: "<length>"; initial-value: 10px; inherits: false;}@property --btn-spacing{syntax: "<length>"; initial-value: 8px; inherits: false;}@property --grid-columns{syntax: "<number>"; initial-value: 12; inherits: false;}@property --grid-width{syntax: "<length>"; initial-value: 1440px; inherits: false;}@property --angle-grad{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --opacity-grad{syntax: "<number>"; initial-value: 0; inherits: false;}@keyframes spinAnimation{to{--border-angle: 360deg}}@keyframes gradientAnimation{0%{--animate-position: 45deg}33%{--animate-position: -50deg}66%{--animate-position: -100deg}to{--animate-position: 45deg}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),Ii=require("react-dom"),Kl=require("react-router-dom");function Ls(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const pt=Ls(v),Jl=Ls(Ii),Ns=e=>({getVariant:(t,r)=>e(t)[r]}),Fs=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"];var gt=function(){return gt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},gt.apply(this,arguments)};function Dr(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Xl(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Zl=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,eu=Xl(function(e){return Zl.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pe="-ms-",tn="-moz-",xe="-webkit-",zs="comm",uo="rule",Mi="decl",tu="@import",Vs="@keyframes",ru="@layer",Bs=Math.abs,Li=String.fromCharCode,ri=Object.assign;function nu(e,t){return rt(e,0)^45?(((t<<2^rt(e,0))<<2^rt(e,1))<<2^rt(e,2))<<2^rt(e,3):0}function Ws(e){return e.trim()}function nr(e,t){return(e=t.exec(e))?e[0]:e}function fe(e,t,r){return e.replace(t,r)}function Vn(e,t,r){return e.indexOf(t,r)}function rt(e,t){return e.charCodeAt(t)|0}function Mr(e,t,r){return e.slice(t,r)}function Jt(e){return e.length}function Us(e){return e.length}function en(e,t){return t.push(e),e}function ou(e,t){return e.map(t).join("")}function _a(e,t){return e.filter(function(r){return!nr(r,t)})}var fo=1,Lr=1,Gs=0,Wt=0,Ge=0,Wr="";function po(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:fo,column:Lr,length:a,return:"",siblings:s}}function ar(e,t){return ri(po("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Tr(e){for(;e.root;)e=ar(e.root,{children:[e]});en(e,e.siblings)}function iu(){return Ge}function au(){return Ge=Wt>0?rt(Wr,--Wt):0,Lr--,Ge===10&&(Lr=1,fo--),Ge}function qt(){return Ge=Wt<Gs?rt(Wr,Wt++):0,Lr++,Ge===10&&(Lr=1,fo++),Ge}function br(){return rt(Wr,Wt)}function Bn(){return Wt}function ho(e,t){return Mr(Wr,e,t)}function ni(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function su(e){return fo=Lr=1,Gs=Jt(Wr=e),Wt=0,[]}function cu(e){return Wr="",e}function Uo(e){return Ws(ho(Wt-1,oi(e===91?e+2:e===40?e+1:e)))}function lu(e){for(;(Ge=br())&&Ge<33;)qt();return ni(e)>2||ni(Ge)>3?"":" "}function uu(e,t){for(;--t&&qt()&&!(Ge<48||Ge>102||Ge>57&&Ge<65||Ge>70&&Ge<97););return ho(e,Bn()+(t<6&&br()==32&&qt()==32))}function oi(e){for(;qt();)switch(Ge){case e:return Wt;case 34:case 39:e!==34&&e!==39&&oi(Ge);break;case 40:e===41&&oi(e);break;case 92:qt();break}return Wt}function du(e,t){for(;qt()&&e+Ge!==57;)if(e+Ge===84&&br()===47)break;return"/*"+ho(t,Wt-1)+"*"+Li(e===47?e:qt())}function fu(e){for(;!ni(br());)qt();return ho(e,Wt)}function pu(e){return cu(Wn("",null,null,null,[""],e=su(e),0,[0],e))}function Wn(e,t,r,n,o,i,a,s,c){for(var u=0,f=0,y=a,h=0,g=0,x=0,S=1,k=1,_=1,C=0,P="",M=o,D=i,A=n,j=P;k;)switch(x=C,C=qt()){case 40:if(x!=108&&rt(j,y-1)==58){Vn(j+=fe(Uo(C),"&","&\f"),"&\f",Bs(u?s[u-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:j+=Uo(C);break;case 9:case 10:case 13:case 32:j+=lu(x);break;case 92:j+=uu(Bn()-1,7);continue;case 47:switch(br()){case 42:case 47:en(hu(du(qt(),Bn()),t,r,c),c);break;default:j+="/"}break;case 123*S:s[u++]=Jt(j)*_;case 125*S:case 59:case 0:switch(C){case 0:case 125:k=0;case 59+f:_==-1&&(j=fe(j,/\f/g,"")),g>0&&Jt(j)-y&&en(g>32?Ca(j+";",n,r,y-1,c):Ca(fe(j," ","")+";",n,r,y-2,c),c);break;case 59:j+=";";default:if(en(A=Sa(j,t,r,u,f,o,s,P,M=[],D=[],y,i),i),C===123)if(f===0)Wn(j,t,A,A,M,i,y,s,D);else switch(h===99&&rt(j,3)===110?100:h){case 100:case 108:case 109:case 115:Wn(e,A,A,n&&en(Sa(e,A,A,0,0,o,s,P,o,M=[],y,D),D),o,D,y,s,n?M:D);break;default:Wn(j,A,A,A,[""],D,0,s,D)}}u=f=g=0,S=_=1,P=j="",y=a;break;case 58:y=1+Jt(j),g=x;default:if(S<1){if(C==123)--S;else if(C==125&&S++==0&&au()==125)continue}switch(j+=Li(C),C*S){case 38:_=f>0?1:(j+="\f",-1);break;case 44:s[u++]=(Jt(j)-1)*_,_=1;break;case 64:br()===45&&(j+=Uo(qt())),h=br(),f=y=Jt(P=j+=fu(Bn())),C++;break;case 45:x===45&&Jt(j)==2&&(S=0)}}return i}function Sa(e,t,r,n,o,i,a,s,c,u,f,y){for(var h=o-1,g=o===0?i:[""],x=Us(g),S=0,k=0,_=0;S<n;++S)for(var C=0,P=Mr(e,h+1,h=Bs(k=a[S])),M=e;C<x;++C)(M=Ws(k>0?g[C]+" "+P:fe(P,/&\f/g,g[C])))&&(c[_++]=M);return po(e,t,r,o===0?uo:s,c,u,f,y)}function hu(e,t,r,n){return po(e,t,r,zs,Li(iu()),Mr(e,2,-2),0,n)}function Ca(e,t,r,n,o){return po(e,t,r,Mi,Mr(e,0,n),Mr(e,n+1,-1),n,o)}function qs(e,t,r){switch(nu(e,t)){case 5103:return xe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xe+e+e;case 4789:return tn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xe+e+tn+e+Pe+e+e;case 5936:switch(rt(e,t+11)){case 114:return xe+e+Pe+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xe+e+Pe+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xe+e+Pe+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return xe+e+Pe+e+e;case 6165:return xe+e+Pe+"flex-"+e+e;case 5187:return xe+e+fe(e,/(\w+).+(:[^]+)/,xe+"box-$1$2"+Pe+"flex-$1$2")+e;case 5443:return xe+e+Pe+"flex-item-"+fe(e,/flex-|-self/g,"")+(nr(e,/flex-|baseline/)?"":Pe+"grid-row-"+fe(e,/flex-|-self/g,""))+e;case 4675:return xe+e+Pe+"flex-line-pack"+fe(e,/align-content|flex-|-self/g,"")+e;case 5548:return xe+e+Pe+fe(e,"shrink","negative")+e;case 5292:return xe+e+Pe+fe(e,"basis","preferred-size")+e;case 6060:return xe+"box-"+fe(e,"-grow","")+xe+e+Pe+fe(e,"grow","positive")+e;case 4554:return xe+fe(e,/([^-])(transform)/g,"$1"+xe+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,xe+"$1"),/(image-set)/,xe+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,xe+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,xe+"box-pack:$3"+Pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xe+e+e;case 4200:if(!nr(e,/flex-|baseline/))return Pe+"grid-column-align"+Mr(e,t)+e;break;case 2592:case 3360:return Pe+fe(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,nr(n.props,/grid-\w+-end/)})?~Vn(e+(r=r[t].value),"span",0)?e:Pe+fe(e,"-start","")+e+Pe+"grid-row-span:"+(~Vn(r,"span",0)?nr(r,/\d+/):+nr(r,/\d+/)-+nr(e,/\d+/))+";":Pe+fe(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return nr(n.props,/grid-\w+-start/)})?e:Pe+fe(fe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,xe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Jt(e)-1-t>6)switch(rt(e,t+1)){case 109:if(rt(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+xe+"$2-$3$1"+tn+(rt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vn(e,"stretch",0)?qs(fe(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return fe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,s,c,u){return Pe+o+":"+i+u+(a?Pe+o+"-span:"+(s?c:+c-+i)+u:"")+e});case 4949:if(rt(e,t+6)===121)return fe(e,":",":"+xe)+e;break;case 6444:switch(rt(e,rt(e,14)===45?18:11)){case 120:return fe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+xe+(rt(e,14)===45?"inline-":"")+"box$3$1"+xe+"$2$3$1"+Pe+"$2box$3")+e;case 100:return fe(e,":",":"+Pe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return fe(e,"scroll-","scroll-snap-")+e}return e}function Yn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function gu(e,t,r,n){switch(e.type){case ru:if(e.children.length)break;case tu:case Mi:return e.return=e.return||e.value;case zs:return"";case Vs:return e.return=e.value+"{"+Yn(e.children,n)+"}";case uo:if(!Jt(e.value=e.props.join(",")))return""}return Jt(r=Yn(e.children,n))?e.return=e.value+"{"+r+"}":""}function yu(e){var t=Us(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function mu(e){return function(t){t.root||(t=t.return)&&e(t)}}function vu(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Mi:e.return=qs(e.value,e.length,r);return;case Vs:return Yn([ar(e,{value:fe(e.value,"@","@"+xe)})],n);case uo:if(e.length)return ou(r=e.props,function(o){switch(nr(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Tr(ar(e,{props:[fe(o,/:(read-\w+)/,":"+tn+"$1")]})),Tr(ar(e,{props:[o]})),ri(e,{props:_a(r,n)});break;case"::placeholder":Tr(ar(e,{props:[fe(o,/:(plac\w+)/,":"+xe+"input-$1")]})),Tr(ar(e,{props:[fe(o,/:(plac\w+)/,":"+tn+"$1")]})),Tr(ar(e,{props:[fe(o,/:(plac\w+)/,Pe+"input-$1")]})),Tr(ar(e,{props:[o]})),ri(e,{props:_a(r,n)});break}return""})}}var bu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$r=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Hs="active",Ys="data-styled-version",go="6.1.13",Ni=`/*!sc*/
|
|
3
|
+
`,Qn=typeof window<"u"&&"HTMLElement"in window,wu=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Ea=/invalid hook call/i,Mn=new Set,xu=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
|
|
4
4
|
`)+`You may see this warning because you've called styled inside another component.
|
|
5
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var i=!0;console.error=function(a){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c]
|
|
5
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var i=!0;console.error=function(a){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];Ea.test(a)?(i=!1,Mn.delete(n)):o.apply(void 0,Dr([a],s,!1))},v.useRef(),i&&!Mn.has(n)&&(console.warn(n),Mn.add(n))}catch(a){Ea.test(a.message)&&Mn.delete(n)}finally{console.error=o}}},yo=Object.freeze([]),Nr=Object.freeze({});function $u(e,t,r){return r===void 0&&(r=Nr),e.theme!==r.theme&&e.theme||t||r.theme}var ii=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),_u=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Su=/(^-|-$)/g;function ka(e){return e.replace(_u,"-").replace(Su,"")}var Cu=/(a)(d)/gi,Ln=52,Aa=function(e){return String.fromCharCode(e+(e>25?39:97))};function ai(e){var t,r="";for(t=Math.abs(e);t>Ln;t=t/Ln|0)r=Aa(t%Ln)+r;return(Aa(t%Ln)+r).replace(Cu,"$1-$2")}var Go,Qs=5381,mr=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ks=function(e){return mr(Qs,e)};function Eu(e){return ai(Ks(e)>>>0)}function Js(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function qo(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Xs=typeof Symbol=="function"&&Symbol.for,Zs=Xs?Symbol.for("react.memo"):60115,ku=Xs?Symbol.for("react.forward_ref"):60112,Au={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Tu={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ec={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ou=((Go={})[ku]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Go[Zs]=ec,Go);function Ta(e){return("type"in(t=e)&&t.type.$$typeof)===Zs?ec:"$$typeof"in e?Ou[e.$$typeof]:Au;var t}var Ru=Object.defineProperty,ju=Object.getOwnPropertyNames,Oa=Object.getOwnPropertySymbols,Pu=Object.getOwnPropertyDescriptor,Iu=Object.getPrototypeOf,Ra=Object.prototype;function tc(e,t,r){if(typeof t!="string"){if(Ra){var n=Iu(t);n&&n!==Ra&&tc(e,n,r)}var o=ju(t);Oa&&(o=o.concat(Oa(t)));for(var i=Ta(e),a=Ta(t),s=0;s<o.length;++s){var c=o[s];if(!(c in Tu||r&&r[c]||a&&c in a||i&&c in i)){var u=Pu(t,c);try{Ru(e,c,u)}catch{}}}}return e}function _r(e){return typeof e=="function"}function Fi(e){return typeof e=="object"&&"styledComponentId"in e}function vr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ja(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Fr(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function si(e,t,r){if(r===void 0&&(r=!1),!r&&!Fr(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=si(e[n],t[n]);else if(Fr(t))for(var n in t)e[n]=si(e[n],t[n]);return e}function zi(e,t){Object.defineProperty(e,"toString",{value:t})}var Du=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
6
6
|
|
|
7
7
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
8
8
|
|
|
@@ -43,7 +43,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
43
43
|
|
|
44
44
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
45
45
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
46
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Iu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,i=e.length;o<i;o+=1)n.push(e[o]);return n.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function or(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Iu.apply(void 0,Ir([Du[e]],t,!1)).trim())}var Mu=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw or(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(t+1),c=(a=0,r.length);a<c;a++)this.tag.insertRule(s,r[a])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,a=o;a<i;a++)r+="".concat(this.tag.getRule(a)).concat(Ii);return r},e}(),Lu=1<<30,Vn=new Map,Hn=new Map,zn=1,Dn=function(e){if(Vn.has(e))return Vn.get(e);for(;Hn.has(zn);)zn++;var t=zn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Lu))throw or(16,"".concat(t));return Vn.set(e,t),Hn.set(t,e),t},Nu=function(e,t){zn=t+1,Vn.set(e,t),Hn.set(t,e)},Fu="style[".concat($r,"][").concat(Us,'="').concat(fo,'"]'),Vu=new RegExp("^".concat($r,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),zu=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Bu=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ii),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var c=s.match(Vu);if(c){var u=0|parseInt(c[1],10),f=c[2];u!==0&&(Nu(f,u),zu(e,f,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Ta=function(e){for(var t=document.querySelectorAll(Fu),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute($r)!==Ws&&(Bu(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Wu(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Xs=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(s){var c=Array.from(s.querySelectorAll("style[".concat($r,"]")));return c[c.length-1]}(r),i=o!==void 0?o.nextSibling:null;n.setAttribute($r,Ws),n.setAttribute(Us,fo);var a=Wu();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Uu=function(){function e(t){this.element=Xs(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===r)return a}throw or(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),qu=function(){function e(t){this.element=Xs(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Gu=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Oa=Gn,Hu={isServer:!Gn,useCSSOMInjection:!bu},Zs=function(){function e(t,r,n){t===void 0&&(t=Nr),r===void 0&&(r={});var o=this;this.options=pt(pt({},Hu),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Gn&&Oa&&(Oa=!1,Ta(this)),Li(this,function(){return function(i){for(var a=i.getTag(),s=a.length,c="",u=function(y){var m=function($){return Hn.get($)}(y);if(m===void 0)return"continue";var v=i.names.get(m),w=a.getGroup(y);if(v===void 0||!v.size||w.length===0)return"continue";var _="".concat($r,".g").concat(y,'[id="').concat(m,'"]'),O="";v!==void 0&&v.forEach(function($){$.length>0&&(O+="".concat($,","))}),c+="".concat(w).concat(_,'{content:"').concat(O,'"}').concat(Ii)},f=0;f<s;f++)u(f);return c}(o)})}return e.registerId=function(t){return Dn(t)},e.prototype.rehydrate=function(){!this.server&&Gn&&Ta(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(pt(pt({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new Gu(o):n?new Uu(o):new qu(o)}(this.options),new Mu(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Dn(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Dn(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Dn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Yu=/&/g,Qu=/^\s*\/\/.*$/gm;function ec(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=ec(r.children,t)),r})}function Ku(e){var t,r,n,o=Nr,i=o.options,a=i===void 0?Nr:i,s=o.plugins,c=s===void 0?po:s,u=function(m,v,w){return w.startsWith(r)&&w.endsWith(r)&&w.replaceAll(r,"").length>0?".".concat(t):m},f=c.slice();f.push(function(m){m.type===so&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(Yu,r).replace(n,u))}),a.prefix&&f.push(mu),f.push(hu);var y=function(m,v,w,_){v===void 0&&(v=""),w===void 0&&(w=""),_===void 0&&(_="&"),t=_,r=v,n=new RegExp("\\".concat(r,"\\b"),"g");var O=m.replace(Qu,""),$=fu(w||v?"".concat(w," ").concat(v," { ").concat(O," }"):O);a.namespace&&($=ec($,a.namespace));var C=[];return qn($,gu(f.concat(yu(function(P){return C.push(P)})))),C};return y.hash=c.length?c.reduce(function(m,v){return v.name||or(15),mr(m,v.name)},qs).toString():"",y}var Ju=new Zs,ai=Ku(),tc=g.createContext({shouldForwardProp:void 0,styleSheet:Ju,stylis:ai});tc.Consumer;g.createContext(void 0);function Ra(){return g.useContext(tc)}var ja=function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=ai);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Li(this,function(){throw or(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ai),this.name+t.hash},e}(),Xu=function(e){return e>="A"&&e<="Z"};function Pa(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Xu(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var rc=function(e){return e==null||e===!1||e===""},nc=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!rc(i)&&(Array.isArray(i)&&i.isCss||_r(i)?n.push("".concat(Pa(o),":"),i,";"):Fr(i)?n.push.apply(n,Ir(Ir(["".concat(o," {")],nc(i),!1),["}"],!1)):n.push("".concat(Pa(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in vu||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function wr(e,t,r,n){if(rc(e))return[];if(Mi(e))return[".".concat(e.styledComponentId)];if(_r(e)){if(!_r(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof ja||Fr(o)||o===null||console.error("".concat(Hs(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),wr(o,t,r,n)}var i;return e instanceof ja?r?(e.inject(r,n),[e.getName(n)]):[e]:Fr(e)?nc(e):Array.isArray(e)?Array.prototype.concat.apply(po,e.map(function(a){return wr(a,t,r,n)})):[e.toString()]}function Zu(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(_r(r)&&!Mi(r))return!1}return!0}var ed=Gs(fo),td=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Zu(t),this.componentId=r,this.baseHash=mr(ed,r),this.baseStyle=n,Zs.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=vr(o,this.staticRulesId);else{var i=Aa(wr(this.rules,t,r,n)),a=oi(mr(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,a)){var s=n(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,s)}o=vr(o,a),this.staticRulesId=a}else{for(var c=mr(this.baseHash,n.hash),u="",f=0;f<this.rules.length;f++){var y=this.rules[f];if(typeof y=="string")u+=y,process.env.NODE_ENV!=="production"&&(c=mr(c,y));else if(y){var m=Aa(wr(y,t,r,n));c=mr(c,m+f),u+=m}}if(u){var v=oi(c>>>0);r.hasNameForId(this.componentId,v)||r.insertRules(this.componentId,v,n(u,".".concat(v),void 0,this.componentId)),o=vr(o,v)}}return o},e}(),Yn=g.createContext(void 0);Yn.Consumer;function rd(e){var t=g.useContext(Yn),r=g.useMemo(function(){return function(n,o){if(!n)throw or(14);if(_r(n)){var i=n(o);if(process.env.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw or(7);return i}if(Array.isArray(n)||typeof n!="object")throw or(8);return o?pt(pt({},o),n):n}(e.theme,t)},[e.theme,t]);return e.children?g.createElement(Yn.Provider,{value:r},e.children):null}var qo={},Da=new Set;function nd(e,t,r){var n=Mi(e),o=e,i=!Uo(e),a=t.attrs,s=a===void 0?po:a,c=t.componentId,u=c===void 0?function(I,M){var k=typeof I!="string"?"sc":_a(I);qo[k]=(qo[k]||0)+1;var T="".concat(k,"-").concat(Cu(fo+k+qo[k]));return M?"".concat(M,"-").concat(T):T}(t.displayName,t.parentComponentId):c,f=t.displayName,y=f===void 0?function(I){return Uo(I)?"styled.".concat(I):"Styled(".concat(Hs(I),")")}(e):f,m=t.displayName&&t.componentId?"".concat(_a(t.displayName),"-").concat(t.componentId):t.componentId||u,v=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,w=t.shouldForwardProp;if(n&&o.shouldForwardProp){var _=o.shouldForwardProp;if(t.shouldForwardProp){var O=t.shouldForwardProp;w=function(I,M){return _(I,M)&&O(I,M)}}else w=_}var $=new td(r,m,n?o.componentStyle:void 0);function C(I,M){return function(k,T,V){var U=k.attrs,Y=k.componentStyle,pe=k.defaultProps,ve=k.foldedComponentIds,se=k.styledComponentId,N=k.target,J=g.useContext(Yn),z=Ra(),te=k.shouldForwardProp||z.shouldForwardProp;process.env.NODE_ENV!=="production"&&g.useDebugValue(se);var B=xu(T,J,pe)||Nr,ie=function(tt,qe,Ge){for(var be,Ce=pt(pt({},qe),{className:void 0,theme:Ge}),Ae=0;Ae<tt.length;Ae+=1){var Be=_r(be=tt[Ae])?be(Ce):be;for(var Ie in Be)Ce[Ie]=Ie==="className"?vr(Ce[Ie],Be[Ie]):Ie==="style"?pt(pt({},Ce[Ie]),Be[Ie]):Be[Ie]}return qe.className&&(Ce.className=vr(Ce.className,qe.className)),Ce}(U,T,B),H=ie.as||N,ye={};for(var $e in ie)ie[$e]===void 0||$e[0]==="$"||$e==="as"||$e==="theme"&&ie.theme===B||($e==="forwardedAs"?ye.as=ie.forwardedAs:te&&!te($e,H)||(ye[$e]=ie[$e],te||process.env.NODE_ENV!=="development"||Zl($e)||Da.has($e)||!ni.has(H)||(Da.add($e),console.warn('styled-components: it looks like an unknown prop "'.concat($e,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var re=function(tt,qe){var Ge=Ra(),be=tt.generateAndInjectStyles(qe,Ge.styleSheet,Ge.stylis);return process.env.NODE_ENV!=="production"&&g.useDebugValue(be),be}(Y,ie);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(re);var st=vr(ve,se);return re&&(st+=" "+re),ie.className&&(st+=" "+ie.className),ye[Uo(H)&&!ni.has(H)?"class":"className"]=st,ye.ref=V,g.createElement(H,ye)}(P,I,M)}C.displayName=y;var P=g.forwardRef(C);return P.attrs=v,P.componentStyle=$,P.displayName=y,P.shouldForwardProp=w,P.foldedComponentIds=n?vr(o.foldedComponentIds,o.styledComponentId):"",P.styledComponentId=m,P.target=n?o.target:e,Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(I){this._foldedDefaultProps=n?function(M){for(var k=[],T=1;T<arguments.length;T++)k[T-1]=arguments[T];for(var V=0,U=k;V<U.length;V++)ii(M,U[V],!0);return M}({},o.defaultProps,I):I}}),process.env.NODE_ENV!=="production"&&(wu(y,m),P.warnTooManyClasses=function(I,M){var k={},T=!1;return function(V){if(!T&&(k[V]=!0,Object.keys(k).length>=200)){var U=M?' with the id of "'.concat(M,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(I).concat(U,`.
|
|
46
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Mu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,i=e.length;o<i;o+=1)n.push(e[o]);return n.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function or(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Mu.apply(void 0,Dr([Du[e]],t,!1)).trim())}var Lu=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw or(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(t+1),c=(a=0,r.length);a<c;a++)this.tag.insertRule(s,r[a])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,a=o;a<i;a++)r+="".concat(this.tag.getRule(a)).concat(Ni);return r},e}(),Nu=1<<30,Un=new Map,Kn=new Map,Gn=1,Nn=function(e){if(Un.has(e))return Un.get(e);for(;Kn.has(Gn);)Gn++;var t=Gn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Nu))throw or(16,"".concat(t));return Un.set(e,t),Kn.set(t,e),t},Fu=function(e,t){Gn=t+1,Un.set(e,t),Kn.set(t,e)},zu="style[".concat($r,"][").concat(Ys,'="').concat(go,'"]'),Vu=new RegExp("^".concat($r,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Bu=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Wu=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ni),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var c=s.match(Vu);if(c){var u=0|parseInt(c[1],10),f=c[2];u!==0&&(Fu(f,u),Bu(e,f,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Pa=function(e){for(var t=document.querySelectorAll(zu),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute($r)!==Hs&&(Wu(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Uu(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var rc=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(s){var c=Array.from(s.querySelectorAll("style[".concat($r,"]")));return c[c.length-1]}(r),i=o!==void 0?o.nextSibling:null;n.setAttribute($r,Hs),n.setAttribute(Ys,go);var a=Uu();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Gu=function(){function e(t){this.element=rc(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===r)return a}throw or(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),qu=function(){function e(t){this.element=rc(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Hu=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Ia=Qn,Yu={isServer:!Qn,useCSSOMInjection:!wu},nc=function(){function e(t,r,n){t===void 0&&(t=Nr),r===void 0&&(r={});var o=this;this.options=gt(gt({},Yu),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Qn&&Ia&&(Ia=!1,Pa(this)),zi(this,function(){return function(i){for(var a=i.getTag(),s=a.length,c="",u=function(y){var h=function(_){return Kn.get(_)}(y);if(h===void 0)return"continue";var g=i.names.get(h),x=a.getGroup(y);if(g===void 0||!g.size||x.length===0)return"continue";var S="".concat($r,".g").concat(y,'[id="').concat(h,'"]'),k="";g!==void 0&&g.forEach(function(_){_.length>0&&(k+="".concat(_,","))}),c+="".concat(x).concat(S,'{content:"').concat(k,'"}').concat(Ni)},f=0;f<s;f++)u(f);return c}(o)})}return e.registerId=function(t){return Nn(t)},e.prototype.rehydrate=function(){!this.server&&Qn&&Pa(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(gt(gt({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new Hu(o):n?new Gu(o):new qu(o)}(this.options),new Lu(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Nn(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Nn(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Nn(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Qu=/&/g,Ku=/^\s*\/\/.*$/gm;function oc(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=oc(r.children,t)),r})}function Ju(e){var t,r,n,o=Nr,i=o.options,a=i===void 0?Nr:i,s=o.plugins,c=s===void 0?yo:s,u=function(h,g,x){return x.startsWith(r)&&x.endsWith(r)&&x.replaceAll(r,"").length>0?".".concat(t):h},f=c.slice();f.push(function(h){h.type===uo&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Qu,r).replace(n,u))}),a.prefix&&f.push(vu),f.push(gu);var y=function(h,g,x,S){g===void 0&&(g=""),x===void 0&&(x=""),S===void 0&&(S="&"),t=S,r=g,n=new RegExp("\\".concat(r,"\\b"),"g");var k=h.replace(Ku,""),_=pu(x||g?"".concat(x," ").concat(g," { ").concat(k," }"):k);a.namespace&&(_=oc(_,a.namespace));var C=[];return Yn(_,yu(f.concat(mu(function(P){return C.push(P)})))),C};return y.hash=c.length?c.reduce(function(h,g){return g.name||or(15),mr(h,g.name)},Qs).toString():"",y}var Xu=new nc,ci=Ju(),ic=v.createContext({shouldForwardProp:void 0,styleSheet:Xu,stylis:ci});ic.Consumer;v.createContext(void 0);function Da(){return v.useContext(ic)}var Ma=function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=ci);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,zi(this,function(){throw or(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ci),this.name+t.hash},e}(),Zu=function(e){return e>="A"&&e<="Z"};function La(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Zu(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var ac=function(e){return e==null||e===!1||e===""},sc=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!ac(i)&&(Array.isArray(i)&&i.isCss||_r(i)?n.push("".concat(La(o),":"),i,";"):Fr(i)?n.push.apply(n,Dr(Dr(["".concat(o," {")],sc(i),!1),["}"],!1)):n.push("".concat(La(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in bu||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function wr(e,t,r,n){if(ac(e))return[];if(Fi(e))return[".".concat(e.styledComponentId)];if(_r(e)){if(!_r(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Ma||Fr(o)||o===null||console.error("".concat(Js(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),wr(o,t,r,n)}var i;return e instanceof Ma?r?(e.inject(r,n),[e.getName(n)]):[e]:Fr(e)?sc(e):Array.isArray(e)?Array.prototype.concat.apply(yo,e.map(function(a){return wr(a,t,r,n)})):[e.toString()]}function ed(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(_r(r)&&!Fi(r))return!1}return!0}var td=Ks(go),rd=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&ed(t),this.componentId=r,this.baseHash=mr(td,r),this.baseStyle=n,nc.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=vr(o,this.staticRulesId);else{var i=ja(wr(this.rules,t,r,n)),a=ai(mr(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,a)){var s=n(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,s)}o=vr(o,a),this.staticRulesId=a}else{for(var c=mr(this.baseHash,n.hash),u="",f=0;f<this.rules.length;f++){var y=this.rules[f];if(typeof y=="string")u+=y,process.env.NODE_ENV!=="production"&&(c=mr(c,y));else if(y){var h=ja(wr(y,t,r,n));c=mr(c,h+f),u+=h}}if(u){var g=ai(c>>>0);r.hasNameForId(this.componentId,g)||r.insertRules(this.componentId,g,n(u,".".concat(g),void 0,this.componentId)),o=vr(o,g)}}return o},e}(),Jn=v.createContext(void 0);Jn.Consumer;function nd(e){var t=v.useContext(Jn),r=v.useMemo(function(){return function(n,o){if(!n)throw or(14);if(_r(n)){var i=n(o);if(process.env.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw or(7);return i}if(Array.isArray(n)||typeof n!="object")throw or(8);return o?gt(gt({},o),n):n}(e.theme,t)},[e.theme,t]);return e.children?v.createElement(Jn.Provider,{value:r},e.children):null}var Ho={},Na=new Set;function od(e,t,r){var n=Fi(e),o=e,i=!qo(e),a=t.attrs,s=a===void 0?yo:a,c=t.componentId,u=c===void 0?function(M,D){var A=typeof M!="string"?"sc":ka(M);Ho[A]=(Ho[A]||0)+1;var j="".concat(A,"-").concat(Eu(go+A+Ho[A]));return D?"".concat(D,"-").concat(j):j}(t.displayName,t.parentComponentId):c,f=t.displayName,y=f===void 0?function(M){return qo(M)?"styled.".concat(M):"Styled(".concat(Js(M),")")}(e):f,h=t.displayName&&t.componentId?"".concat(ka(t.displayName),"-").concat(t.componentId):t.componentId||u,g=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,x=t.shouldForwardProp;if(n&&o.shouldForwardProp){var S=o.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;x=function(M,D){return S(M,D)&&k(M,D)}}else x=S}var _=new rd(r,h,n?o.componentStyle:void 0);function C(M,D){return function(A,j,z){var H=A.attrs,V=A.componentStyle,ie=A.defaultProps,he=A.foldedComponentIds,ae=A.styledComponentId,N=A.target,J=v.useContext(Jn),B=Da(),re=A.shouldForwardProp||B.shouldForwardProp;process.env.NODE_ENV!=="production"&&v.useDebugValue(ae);var W=$u(j,J,ie)||Nr,se=function(ot,qe,He){for(var be,Ce=gt(gt({},qe),{className:void 0,theme:He}),Ae=0;Ae<ot.length;Ae+=1){var We=_r(be=ot[Ae])?be(Ce):be;for(var De in We)Ce[De]=De==="className"?vr(Ce[De],We[De]):De==="style"?gt(gt({},Ce[De]),We[De]):We[De]}return qe.className&&(Ce.className=vr(Ce.className,qe.className)),Ce}(H,j,W),Y=se.as||N,me={};for(var $e in se)se[$e]===void 0||$e[0]==="$"||$e==="as"||$e==="theme"&&se.theme===W||($e==="forwardedAs"?me.as=se.forwardedAs:re&&!re($e,Y)||(me[$e]=se[$e],re||process.env.NODE_ENV!=="development"||eu($e)||Na.has($e)||!ii.has(Y)||(Na.add($e),console.warn('styled-components: it looks like an unknown prop "'.concat($e,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var ne=function(ot,qe){var He=Da(),be=ot.generateAndInjectStyles(qe,He.styleSheet,He.stylis);return process.env.NODE_ENV!=="production"&&v.useDebugValue(be),be}(V,se);process.env.NODE_ENV!=="production"&&A.warnTooManyClasses&&A.warnTooManyClasses(ne);var lt=vr(he,ae);return ne&&(lt+=" "+ne),se.className&&(lt+=" "+se.className),me[qo(Y)&&!ii.has(Y)?"class":"className"]=lt,me.ref=z,v.createElement(Y,me)}(P,M,D)}C.displayName=y;var P=v.forwardRef(C);return P.attrs=g,P.componentStyle=_,P.displayName=y,P.shouldForwardProp=x,P.foldedComponentIds=n?vr(o.foldedComponentIds,o.styledComponentId):"",P.styledComponentId=h,P.target=n?o.target:e,Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=n?function(D){for(var A=[],j=1;j<arguments.length;j++)A[j-1]=arguments[j];for(var z=0,H=A;z<H.length;z++)si(D,H[z],!0);return D}({},o.defaultProps,M):M}}),process.env.NODE_ENV!=="production"&&(xu(y,h),P.warnTooManyClasses=function(M,D){var A={},j=!1;return function(z){if(!j&&(A[z]=!0,Object.keys(A).length>=200)){var H=D?' with the id of "'.concat(D,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(H,`.
|
|
47
47
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
48
48
|
Example:
|
|
49
49
|
const Component = styled.div.attrs(props => ({
|
|
@@ -52,11 +52,11 @@ Example:
|
|
|
52
52
|
},
|
|
53
53
|
}))\`width: 100%;\`
|
|
54
54
|
|
|
55
|
-
<Component />`),
|
|
55
|
+
<Component />`),j=!0,A={}}}}(y,h)),zi(P,function(){return".".concat(P.styledComponentId)}),i&&tc(P,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),P}function Fa(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var za=function(e){return Object.assign(e,{isCss:!0})};function id(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(_r(e)||Fr(e))return za(wr(Fa(yo,Dr([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?wr(n):za(wr(Fa(n,t)))}function li(e,t,r){if(r===void 0&&(r=Nr),!t)throw or(1,t);var n=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,r,id.apply(void 0,Dr([o],i,!1)))};return n.attrs=function(o){return li(e,t,gt(gt({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return li(e,t,gt(gt({},r),o))},n}var cc=function(e){return li(od,e)},X=cc;ii.forEach(function(e){X[e]=cc(e)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
56
56
|
Perhaps you're looking to import 'styled-components/native'?
|
|
57
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var
|
|
57
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Fn="__sc-".concat($r,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Fn]||(window[Fn]=0),window[Fn]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
58
58
|
|
|
59
|
-
See https://s-c.sh/2BAXzed for more info.`),window[
|
|
59
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Fn]+=1);var ui={exports:{}},Jr={};/**
|
|
60
60
|
* @license React
|
|
61
61
|
* react-jsx-runtime.production.min.js
|
|
62
62
|
*
|
|
@@ -64,7 +64,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[In]+=1);var ci={exports:{}},J
|
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the MIT license found in the
|
|
66
66
|
* LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/var
|
|
67
|
+
*/var Va;function ad(){if(Va)return Jr;Va=1;var e=v,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,u){var f,y={},h=null,g=null;u!==void 0&&(h=""+u),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(g=c.ref);for(f in c)n.call(c,f)&&!i.hasOwnProperty(f)&&(y[f]=c[f]);if(s&&s.defaultProps)for(f in c=s.defaultProps,c)y[f]===void 0&&(y[f]=c[f]);return{$$typeof:t,type:s,key:h,ref:g,props:y,_owner:o.current}}return Jr.Fragment=r,Jr.jsx=a,Jr.jsxs=a,Jr}var Xr={};/**
|
|
68
68
|
* @license React
|
|
69
69
|
* react-jsx-runtime.development.js
|
|
70
70
|
*
|
|
@@ -72,22 +72,22 @@ See https://s-c.sh/2BAXzed for more info.`),window[In]+=1);var ci={exports:{}},J
|
|
|
72
72
|
*
|
|
73
73
|
* This source code is licensed under the MIT license found in the
|
|
74
74
|
* LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/var
|
|
76
|
-
`+
|
|
77
|
-
`),Fe=
|
|
78
|
-
`),K=
|
|
79
|
-
`+
|
|
75
|
+
*/var Ba;function sd(){return Ba||(Ba=1,process.env.NODE_ENV!=="production"&&function(){var e=v,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x=Symbol.iterator,S="@@iterator";function k(p){if(p===null||typeof p!="object")return null;var E=x&&p[x]||p[S];return typeof E=="function"?E:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(p){{for(var E=arguments.length,I=new Array(E>1?E-1:0),q=1;q<E;q++)I[q-1]=arguments[q];P("error",p,I)}}function P(p,E,I){{var q=_.ReactDebugCurrentFrame,ye=q.getStackAddendum();ye!==""&&(E+="%s",I=I.concat([ye]));var pe=I.map(function(le){return String(le)});pe.unshift("Warning: "+E),Function.prototype.apply.call(console[p],console,pe)}}var M=!1,D=!1,A=!1,j=!1,z=!1,H;H=Symbol.for("react.module.reference");function V(p){return!!(typeof p=="string"||typeof p=="function"||p===n||p===i||z||p===o||p===u||p===f||j||p===g||M||D||A||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===y||p.$$typeof===a||p.$$typeof===s||p.$$typeof===c||p.$$typeof===H||p.getModuleId!==void 0))}function ie(p,E,I){var q=p.displayName;if(q)return q;var ye=E.displayName||E.name||"";return ye!==""?I+"("+ye+")":I}function he(p){return p.displayName||"Context"}function ae(p){if(p==null)return null;if(typeof p.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case s:var E=p;return he(E)+".Consumer";case a:var I=p;return he(I._context)+".Provider";case c:return ie(p,p.render,"ForwardRef");case y:var q=p.displayName||null;return q!==null?q:ae(p.type)||"Memo";case h:{var ye=p,pe=ye._payload,le=ye._init;try{return ae(le(pe))}catch{return null}}}return null}var N=Object.assign,J=0,B,re,W,se,Y,me,$e;function ne(){}ne.__reactDisabledLog=!0;function lt(){{if(J===0){B=console.log,re=console.info,W=console.warn,se=console.error,Y=console.group,me=console.groupCollapsed,$e=console.groupEnd;var p={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}J++}}function ot(){{if(J--,J===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},p,{value:B}),info:N({},p,{value:re}),warn:N({},p,{value:W}),error:N({},p,{value:se}),group:N({},p,{value:Y}),groupCollapsed:N({},p,{value:me}),groupEnd:N({},p,{value:$e})})}J<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qe=_.ReactCurrentDispatcher,He;function be(p,E,I){{if(He===void 0)try{throw Error()}catch(ye){var q=ye.stack.trim().match(/\n( *(at )?)/);He=q&&q[1]||""}return`
|
|
76
|
+
`+He+p}}var Ce=!1,Ae;{var We=typeof WeakMap=="function"?WeakMap:Map;Ae=new We}function De(p,E){if(!p||Ce)return"";{var I=Ae.get(p);if(I!==void 0)return I}var q;Ce=!0;var ye=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var pe;pe=qe.current,qe.current=null,lt();try{if(E){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(st){q=st}Reflect.construct(p,[],le)}else{try{le.call()}catch(st){q=st}p.call(le.prototype)}}else{try{throw Error()}catch(st){q=st}p()}}catch(st){if(st&&q&&typeof st.stack=="string"){for(var ce=st.stack.split(`
|
|
77
|
+
`),Fe=q.stack.split(`
|
|
78
|
+
`),K=ce.length-1,ve=Fe.length-1;K>=1&&ve>=0&&ce[K]!==Fe[ve];)ve--;for(;K>=1&&ve>=0;K--,ve--)if(ce[K]!==Fe[ve]){if(K!==1||ve!==1)do if(K--,ve--,ve<0||ce[K]!==Fe[ve]){var je=`
|
|
79
|
+
`+ce[K].replace(" at new "," at ");return p.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",p.displayName)),typeof p=="function"&&Ae.set(p,je),je}while(K>=1&&ve>=0);break}}}finally{Ce=!1,qe.current=pe,ot(),Error.prepareStackTrace=ye}var tt=p?p.displayName||p.name:"",er=tt?be(tt):"";return typeof p=="function"&&Ae.set(p,er),er}function yt(p,E,I){return De(p,!1)}function Dt(p){var E=p.prototype;return!!(E&&E.isReactComponent)}function Te(p,E,I){if(p==null)return"";if(typeof p=="function")return De(p,Dt(p));if(typeof p=="string")return be(p);switch(p){case u:return be("Suspense");case f:return be("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case c:return yt(p.render);case y:return Te(p.type,E,I);case h:{var q=p,ye=q._payload,pe=q._init;try{return Te(pe(ye),E,I)}catch{}}}return""}var mt=Object.prototype.hasOwnProperty,Xe={},vt=_.ReactDebugCurrentFrame;function we(p){if(p){var E=p._owner,I=Te(p.type,p._source,E?E.type:null);vt.setExtraStackFrame(I)}else vt.setExtraStackFrame(null)}function bt(p,E,I,q,ye){{var pe=Function.call.bind(mt);for(var le in p)if(pe(p,le)){var ce=void 0;try{if(typeof p[le]!="function"){var Fe=Error((q||"React class")+": "+I+" type `"+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[le]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Fe.name="Invariant Violation",Fe}ce=p[le](E,le,q,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(K){ce=K}ce&&!(ce instanceof Error)&&(we(ye),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",I,le,typeof ce),we(null)),ce instanceof Error&&!(ce.message in Xe)&&(Xe[ce.message]=!0,we(ye),C("Failed %s type: %s",I,ce.message),we(null))}}}var wt=Array.isArray;function xt(p){return wt(p)}function Pt(p){{var E=typeof Symbol=="function"&&Symbol.toStringTag,I=E&&p[Symbol.toStringTag]||p.constructor.name||"Object";return I}}function it(p){try{return ut(p),!1}catch{return!0}}function ut(p){return""+p}function $t(p){if(it(p))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pt(p)),ut(p)}var Ze=_.ReactCurrentOwner,kt={key:!0,ref:!0,__self:!0,__source:!0},At,Mt,Ye;Ye={};function Lt(p){if(mt.call(p,"ref")){var E=Object.getOwnPropertyDescriptor(p,"ref").get;if(E&&E.isReactWarning)return!1}return p.ref!==void 0}function at(p){if(mt.call(p,"key")){var E=Object.getOwnPropertyDescriptor(p,"key").get;if(E&&E.isReactWarning)return!1}return p.key!==void 0}function Ee(p,E){if(typeof p.ref=="string"&&Ze.current&&E&&Ze.current.stateNode!==E){var I=ae(Ze.current.type);Ye[I]||(C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',ae(Ze.current.type),p.ref),Ye[I]=!0)}}function Ut(p,E){{var I=function(){At||(At=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};I.isReactWarning=!0,Object.defineProperty(p,"key",{get:I,configurable:!0})}}function Gt(p,E){{var I=function(){Mt||(Mt=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};I.isReactWarning=!0,Object.defineProperty(p,"ref",{get:I,configurable:!0})}}var _t=function(p,E,I,q,ye,pe,le){var ce={$$typeof:t,type:p,key:E,ref:I,props:le,_owner:pe};return ce._store={},Object.defineProperty(ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.freeze&&(Object.freeze(ce.props),Object.freeze(ce)),ce};function St(p,E,I,q,ye){{var pe,le={},ce=null,Fe=null;I!==void 0&&($t(I),ce=""+I),at(E)&&($t(E.key),ce=""+E.key),Lt(E)&&(Fe=E.ref,Ee(E,ye));for(pe in E)mt.call(E,pe)&&!kt.hasOwnProperty(pe)&&(le[pe]=E[pe]);if(p&&p.defaultProps){var K=p.defaultProps;for(pe in K)le[pe]===void 0&&(le[pe]=K[pe])}if(ce||Fe){var ve=typeof p=="function"?p.displayName||p.name||"Unknown":p;ce&&Ut(le,ve),Fe&&Gt(le,ve)}return _t(p,ce,Fe,ye,q,Ze.current,le)}}var Qe=_.ReactCurrentOwner,dt=_.ReactDebugCurrentFrame;function Ue(p){if(p){var E=p._owner,I=Te(p.type,p._source,E?E.type:null);dt.setExtraStackFrame(I)}else dt.setExtraStackFrame(null)}var Ke;Ke=!1;function Tt(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function ke(){{if(Qe.current){var p=ae(Qe.current.type);if(p)return`
|
|
80
80
|
|
|
81
|
-
Check the render method of \``+p+"`."}return""}}function
|
|
81
|
+
Check the render method of \``+p+"`."}return""}}function et(p){return""}var G={};function de(p){{var E=ke();if(!E){var I=typeof p=="string"?p:p.displayName||p.name;I&&(E=`
|
|
82
82
|
|
|
83
|
-
Check the top-level render call using <`+
|
|
83
|
+
Check the top-level render call using <`+I+">.")}return E}}function Me(p,E){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var I=de(E);if(G[I])return;G[I]=!0;var q="";p&&p._owner&&p._owner!==Qe.current&&(q=" It was passed a child from "+ae(p._owner.type)+"."),Ue(p),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,q),Ue(null)}}function Ct(p,E){{if(typeof p!="object")return;if(xt(p))for(var I=0;I<p.length;I++){var q=p[I];Tt(q)&&Me(q,E)}else if(Tt(p))p._store&&(p._store.validated=!0);else if(p){var ye=k(p);if(typeof ye=="function"&&ye!==p.entries)for(var pe=ye.call(p),le;!(le=pe.next()).done;)Tt(le.value)&&Me(le.value,E)}}}function L(p){{var E=p.type;if(E==null||typeof E=="string")return;var I;if(typeof E=="function")I=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===c||E.$$typeof===y))I=E.propTypes;else return;if(I){var q=ae(E);bt(I,p.props,"prop",q,p)}else if(E.PropTypes!==void 0&&!Ke){Ke=!0;var ye=ae(E);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ye||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Q(p){{for(var E=Object.keys(p.props),I=0;I<E.length;I++){var q=E[I];if(q!=="children"&&q!=="key"){Ue(p),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),Ue(null);break}}p.ref!==null&&(Ue(p),C("Invalid attribute `ref` supplied to `React.Fragment`."),Ue(null))}}function Z(p,E,I,q,ye,pe){{var le=V(p);if(!le){var ce="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(ce+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Fe=et();Fe?ce+=Fe:ce+=ke();var K;p===null?K="null":xt(p)?K="array":p!==void 0&&p.$$typeof===t?(K="<"+(ae(p.type)||"Unknown")+" />",ce=" Did you accidentally export a JSX literal instead of a component?"):K=typeof p,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",K,ce)}var ve=St(p,E,I,ye,pe);if(ve==null)return ve;if(le){var je=E.children;if(je!==void 0)if(q)if(xt(je)){for(var tt=0;tt<je.length;tt++)Ct(je[tt],p);Object.freeze&&Object.freeze(je)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ct(je,p)}return p===n?Q(ve):L(ve),ve}}function Oe(p,E,I){return Z(p,E,I,!0)}function Ne(p,E,I){return Z(p,E,I,!1)}var ft=Ne,Re=Oe;Xr.Fragment=n,Xr.jsx=ft,Xr.jsxs=Re}()),Xr}process.env.NODE_ENV==="production"?ui.exports=ad():ui.exports=sd();var b=ui.exports;const cd={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},ld={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},ud={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},dd={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},fd={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},pd={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},hd={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},gd={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},yd={type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},md={none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},vd={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},bd={0:"0rem",.125:"0.125rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},wd=["lock-keyhole","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","clouds","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark"],xd=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],T={typography:yd,shadows:md,breakpoints:vd,spacing:bd,palette:{primary:ld,complementary:ud,error:dd,info:hd,warning:fd,success:pd,black:"#0c111d",white:"#ffffff",gray:cd,gradients:gd}},$d=({children:e})=>b.jsx(nd,{theme:T,children:e}),te=(e,t)=>t===void 0?"":`${e}: ${t};`,cn=e=>{const t=e.py??e.pt??0,r=e.px??e.pr??0,n=e.py??e.pb??0,o=e.px??e.pl??0;if(e.padding){const[i,a,s,c]=e.padding;return`padding: ${T.spacing[i]} ${T.spacing[a]} ${T.spacing[s]} ${T.spacing[c]};`}return`padding: ${T.spacing[t]} ${T.spacing[r]} ${T.spacing[n]} ${T.spacing[o]};`},ln=e=>{const t=e.my??e.mt??0,r=e.mx??e.mr??0,n=e.my??e.mb??0,o=e.mx??e.ml??0;if(e.margin){const[i,a,s,c]=e.margin;return`margin: ${T.spacing[i]} ${T.spacing[a]} ${T.spacing[s]} ${T.spacing[c]};`}return`margin: ${T.spacing[t]} ${T.spacing[r]} ${T.spacing[n]} ${T.spacing[o]};`},un=e=>{const t=te("position",e.position),r=te("top",e.top),n=te("right",e.right),o=te("bottom",e.bottom),i=te("left",e.left),a=te("z-index",e.zIndex);return`
|
|
84
84
|
${t}
|
|
85
85
|
${r}
|
|
86
86
|
${n}
|
|
87
87
|
${o}
|
|
88
88
|
${i}
|
|
89
89
|
${a}
|
|
90
|
-
`},
|
|
90
|
+
`},dn=e=>{const t=te("border",e.border),r=te("border-top",e.borderTop),n=te("border-right",e.borderRight),o=te("border-bottom",e.borderBottom),i=te("border-left",e.borderLeft),a=te("border-color",e.borderColor),s=te("border-radius",e.borderRadius);return`
|
|
91
91
|
${t}
|
|
92
92
|
${r}
|
|
93
93
|
${n}
|
|
@@ -95,10 +95,10 @@ Check the top-level render call using <`+D+">.")}return E}}function Me(p,E){{if(
|
|
|
95
95
|
${i}
|
|
96
96
|
${a}
|
|
97
97
|
${s}
|
|
98
|
-
`}
|
|
99
|
-
${$d(e.scroll)}
|
|
98
|
+
`},_d=e=>e.includes("x")?"overflow-x: auto;":"",Sd=e=>e.includes("y")?"overflow-y: auto;":"",fn=e=>{const t=e.scroll?`
|
|
100
99
|
${_d(e.scroll)}
|
|
101
|
-
|
|
100
|
+
${Sd(e.scroll)}
|
|
101
|
+
`:"",r=te("visibility",e.visibility),n=te("display",e.display),o=te("height",e.height),i=te("width",e.width),a=te("max-height",e.maxHeight),s=te("max-width",e.maxWidth),c=te("min-height",e.minHeight),u=te("min-width",e.minWidth),f=te("box-shadow",e.shadow?T.shadows[e.shadow]:void 0),y=te("gap",e.gap===void 0?void 0:T.spacing[e.gap]),h=te("background-color",e.bgColor),g=te("background",e.bgGradient),x=te("flex-direction",e.flexDirection),S=te("flex-grow",e.flexGrow),k=te("justify-content",e.justify),_=te("justify-self",e.justifySelf),C=te("align-items",e.alignItems),P=te("align-self",e.alignSelf),M=te("flex-wrap",e.wrap);return`
|
|
102
102
|
${t}
|
|
103
103
|
${r}
|
|
104
104
|
${n}
|
|
@@ -109,17 +109,17 @@ Check the top-level render call using <`+D+">.")}return E}}function Me(p,E){{if(
|
|
|
109
109
|
${c}
|
|
110
110
|
${u}
|
|
111
111
|
${f}
|
|
112
|
-
${
|
|
113
|
-
${
|
|
112
|
+
${h}
|
|
113
|
+
${g}
|
|
114
114
|
${y}
|
|
115
|
-
${
|
|
115
|
+
${x}
|
|
116
|
+
${S}
|
|
117
|
+
${k}
|
|
116
118
|
${_}
|
|
117
|
-
${O}
|
|
118
|
-
${$}
|
|
119
119
|
${C}
|
|
120
120
|
${P}
|
|
121
|
-
${
|
|
122
|
-
`},
|
|
121
|
+
${M}
|
|
122
|
+
`},pn=e=>{const t=te("color",e.color),r=te("font-family",e.fontFamily),n=te("font-size",e.fontSize),o=te("font-weight",e.fontWeight),i=te("line-spacing",e.letterSpacing),a=te("line-height",e.lineSpacing),s=te("text-align",e.textAlign),c=te("text-decoration",e.textDecoration),u=te("text-overflow",e.textOverflow),f=te("white-space",e.whiteSpace),y=te("word-break",e.wordBreak),h=te("word-wrap",e.wordWrap);return`
|
|
123
123
|
${t}
|
|
124
124
|
${r}
|
|
125
125
|
${n}
|
|
@@ -131,8 +131,8 @@ Check the top-level render call using <`+D+">.")}return E}}function Me(p,E){{if(
|
|
|
131
131
|
${u}
|
|
132
132
|
${f}
|
|
133
133
|
${y}
|
|
134
|
-
${
|
|
135
|
-
`},
|
|
134
|
+
${h}
|
|
135
|
+
`},hn=e=>{const t=te("cursor",e.cursor),r=te("border-color",e.borderColorHover),n=te("background-color",e.bgColorHover),o=te("box-shadow",e.shadowHover===void 0?void 0:T.shadows[e.shadowHover]),i=te("transition",e.transition);return`
|
|
136
136
|
${t}
|
|
137
137
|
|
|
138
138
|
&:hover {
|
|
@@ -141,93 +141,114 @@ Check the top-level render call using <`+D+">.")}return E}}function Me(p,E){{if(
|
|
|
141
141
|
${n}
|
|
142
142
|
${o}
|
|
143
143
|
}
|
|
144
|
-
`},
|
|
145
|
-
${sn}
|
|
144
|
+
`},gn=()=>({shouldForwardProp:e=>!Fs.includes(e)}),yn=X.div.withConfig(gn())`
|
|
146
145
|
${cn}
|
|
147
146
|
${ln}
|
|
148
|
-
${dn}
|
|
149
|
-
${fn}
|
|
150
147
|
${un}
|
|
148
|
+
${fn}
|
|
151
149
|
${pn}
|
|
152
|
-
|
|
153
|
-
${
|
|
150
|
+
${dn}
|
|
151
|
+
${hn}
|
|
152
|
+
`,lc=X.button.withConfig(gn())`
|
|
154
153
|
${cn}
|
|
155
154
|
${ln}
|
|
156
|
-
${dn}
|
|
157
|
-
${fn}
|
|
158
155
|
${un}
|
|
156
|
+
${fn}
|
|
159
157
|
${pn}
|
|
160
|
-
|
|
161
|
-
${
|
|
158
|
+
${dn}
|
|
159
|
+
${hn}
|
|
160
|
+
`,Vi=X.p.withConfig(gn())`
|
|
162
161
|
${cn}
|
|
163
162
|
${ln}
|
|
164
|
-
${dn}
|
|
165
|
-
${fn}
|
|
166
163
|
${un}
|
|
164
|
+
${fn}
|
|
167
165
|
${pn}
|
|
168
|
-
|
|
169
|
-
${
|
|
166
|
+
${dn}
|
|
167
|
+
${hn}
|
|
168
|
+
`,uc=X.span.withConfig(gn())`
|
|
170
169
|
${cn}
|
|
171
170
|
${ln}
|
|
172
|
-
${dn}
|
|
173
|
-
${fn}
|
|
174
171
|
${un}
|
|
172
|
+
${fn}
|
|
175
173
|
${pn}
|
|
176
|
-
|
|
177
|
-
${
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
${({theme:e,$color:t=e.palette.gray[800],$display:r="block",$fontFamily:n=e.typography.type.poppins,$fontWeight:o="bold",$letterSpacing:i=0,$lineSpacing:a=1.5,$size:s,$sizeMd:c,$sizeSm:u,$wordBreak:f="normal"})=>`
|
|
182
|
-
color: ${t};
|
|
183
|
-
display: ${r};
|
|
184
|
-
font-family: ${n};
|
|
185
|
-
font-size: ${e.typography.heading[s]};
|
|
186
|
-
font-weight: ${e.typography.weight[o]};
|
|
187
|
-
letter-spacing: ${i};
|
|
188
|
-
line-height: ${e.spacing[a]};
|
|
189
|
-
width: ${r==="block"?"100%":"auto"};
|
|
190
|
-
word-break: ${f};
|
|
174
|
+
${dn}
|
|
175
|
+
${hn}
|
|
176
|
+
`,Cd=(e,t,r,n)=>n==="platform"?t||e===r-1?"1px solid":void 0:e===r-1?"1px solid":void 0,Ed=(e,t)=>t==="progress"&&e?void 0:"1px solid",kd=(e,t)=>t==="simple"?e?"minus":"plus":e?"chevron-up":"chevron-down",Ad=e=>e?"block":"none",Td=(e,t,r)=>{r(e===t?n=>!n:!0)},Od=e=>e==="platform"?[.75,.75,.75,.75]:[1.5,2,1.5,2],Rd=e=>{if(e==="platform")return[.75,.75,.75,.75]},jd=e=>e==="platform"?T.palette.gray[100]:T.palette.gray[50],Pd=e=>e==="platform"?T.palette.gray[200]:T.palette.gray[300],Id=e=>e==="platform"?T.palette.gray[400]:T.palette.gray[800],Dd=e=>e==="end"?"row":"row-reverse",dc=e=>e==="platform"?"sm":"md",Md=X(yn)`
|
|
177
|
+
${({theme:e,$center:t=!1,$styleMd:r,$styleSm:n})=>`
|
|
178
|
+
${t?"margin: auto;":""}
|
|
191
179
|
|
|
192
180
|
@media screen
|
|
193
181
|
and (min-width: ${e.breakpoints.mobile})
|
|
194
182
|
and (max-width: ${e.breakpoints.tablet})
|
|
195
183
|
{
|
|
196
|
-
|
|
184
|
+
${r};
|
|
197
185
|
}
|
|
198
186
|
|
|
199
187
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
200
|
-
|
|
188
|
+
${n};
|
|
201
189
|
}
|
|
202
190
|
`}
|
|
203
|
-
`,Ld=
|
|
204
|
-
${({theme:e,$
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
font-
|
|
209
|
-
font-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
191
|
+
`,Je=v.forwardRef(function({as:t="div",center:r,children:n,id:o,onHover:i,onLeave:a,styleMd:s,styleSm:c,...u},f){return b.jsx(Md,{$center:r,$styleMd:s,$styleSm:c,as:t,id:o,onMouseLeave:a,onMouseOver:i,ref:f,...u,children:n})}),Ld=X(Vi)`
|
|
192
|
+
${({theme:e,$bgGradient:t="unset",$color:r=e.palette.gray[800],$display:n="block",$fontFamily:o=e.typography.type.poppins,$fontWeight:i="bold",$letterSpacing:a=0,$lineSpacing:s=1.5,$lineSpacingSm:c,$size:u,$sizeMd:f,$sizeSm:y,$textFill:h="unset",$wordBreak:g="normal"})=>`
|
|
193
|
+
background: ${t};
|
|
194
|
+
color: ${r};
|
|
195
|
+
display: ${n};
|
|
196
|
+
font-family: ${o};
|
|
197
|
+
font-size: ${e.typography.heading[u]};
|
|
198
|
+
font-weight: ${e.typography.weight[i]};
|
|
199
|
+
letter-spacing: ${a};
|
|
200
|
+
line-height: ${e.spacing[s]};
|
|
201
|
+
width: ${n==="block"?"100%":"auto"};
|
|
202
|
+
word-break: ${g};
|
|
203
|
+
background-clip: text;
|
|
204
|
+
-webkit-background-clip: text;
|
|
205
|
+
-webkit-text-fill-color: ${h};
|
|
214
206
|
|
|
215
207
|
@media screen
|
|
216
208
|
and (min-width: ${e.breakpoints.mobile})
|
|
217
209
|
and (max-width: ${e.breakpoints.tablet})
|
|
218
210
|
{
|
|
219
|
-
font-size: ${e.typography.
|
|
211
|
+
font-size: ${e.typography.heading[f??u]};
|
|
220
212
|
}
|
|
221
213
|
|
|
222
214
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
223
|
-
font-size: ${e.typography.
|
|
215
|
+
font-size: ${e.typography.heading[y??u]};
|
|
216
|
+
line-height: ${e.spacing[c??s]};
|
|
224
217
|
}
|
|
225
218
|
`}
|
|
226
|
-
`,
|
|
219
|
+
`,Nd=X(Vi)`
|
|
220
|
+
${({theme:e,$bgGradient:t="unset",$color:r=e.palette.gray[600],$display:n="block",$fontFamily:o=e.typography.type.primary,$fontWeight:i="regular",$letterSpacing:a=0,$lineSpacing:s=1.25,$lineSpacingSm:c,$size:u,$sizeMd:f,$sizeSm:y,$textFill:h="unset",$wordBreak:g="normal"})=>`
|
|
221
|
+
background: ${t};
|
|
222
|
+
color: ${r};
|
|
223
|
+
display: ${n};
|
|
224
|
+
font-family: ${o};
|
|
225
|
+
font-size: ${e.typography.text[u]};
|
|
226
|
+
font-weight: ${e.typography.weight[i]};
|
|
227
|
+
letter-spacing: ${a};
|
|
228
|
+
line-height: ${e.spacing[s]};
|
|
229
|
+
width: ${n==="block"?"100%":"auto"};
|
|
230
|
+
word-break: ${g};
|
|
231
|
+
background-clip: text;
|
|
232
|
+
-webkit-background-clip: text;
|
|
233
|
+
-webkit-text-fill-color: ${h};
|
|
234
|
+
|
|
235
|
+
@media screen
|
|
236
|
+
and (min-width: ${e.breakpoints.mobile})
|
|
237
|
+
and (max-width: ${e.breakpoints.tablet})
|
|
238
|
+
{
|
|
239
|
+
font-size: ${e.typography.text[f??u]};
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
243
|
+
font-size: ${e.typography.text[y??u]};
|
|
244
|
+
line-height: ${e.spacing[c??s]};
|
|
245
|
+
}
|
|
246
|
+
`}
|
|
247
|
+
`,mn=v.forwardRef(function({bgGradient:t,children:r,className:n,color:o,display:i,fontFamily:a,fontWeight:s,letterSpacing:c,lineSpacing:u,lineSpacingSm:f,size:y,sizeMd:h,sizeSm:g,textFill:x,wordBreak:S,...k},_){return b.jsx(Ld,{$bgGradient:t,$color:o,$display:i,$fontFamily:a,$fontWeight:s,$letterSpacing:c,$lineSpacing:u,$lineSpacingSm:f,$size:y,$sizeMd:h,$sizeSm:g,$textFill:x,$wordBreak:S,className:n,ref:_,...k,children:r})}),ze=v.forwardRef(function({bgGradient:t,children:r,className:n,color:o,display:i,fontFamily:a,fontWeight:s,letterSpacing:c,lineSpacing:u,lineSpacingSm:f,size:y,sizeMd:h,sizeSm:g,textFill:x,wordBreak:S,...k},_){return b.jsx(Nd,{$bgGradient:t,$color:o,$display:i,$fontFamily:a,$fontWeight:s,$letterSpacing:c,$lineSpacing:u,$lineSpacingSm:f,$size:y,$sizeMd:h,$sizeSm:g,$textFill:x,$wordBreak:S,className:n,ref:_,...k,children:r})}),Wa=({isSelectedAndOpen:e,item:t,variant:r,render:n})=>n?b.jsxs(Je,{display:Ad(e),padding:Rd(r),children:[t.description?b.jsx(ze,{mb:t.extraElement?.5:void 0,mt:r==="platform"?void 0:.5,size:dc(r),sizeSm:"sm",children:t.description}):void 0,t.extraElement?b.jsx(Je,{children:t.extraElement}):void 0]}):null,Fd={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px"},zd=X(uc)`
|
|
227
248
|
${({$clickable:e,$color:t="inherit",$disabled:r=!1,$hoverColor:n,$rotation:o,$size:i})=>{const a=n?"":"brightness(50%)",s=n??"";return`
|
|
228
249
|
color: ${t};
|
|
229
250
|
cursor: ${e?"pointer":"inherit"};
|
|
230
|
-
font-size: ${
|
|
251
|
+
font-size: ${Fd[i]};
|
|
231
252
|
line-height: 0;
|
|
232
253
|
vertical-align: middle;
|
|
233
254
|
pointer-events: inherit;
|
|
@@ -247,14 +268,14 @@ Check the top-level render call using <`+D+">.")}return E}}function Me(p,E){{if(
|
|
|
247
268
|
color: ${s};
|
|
248
269
|
}`:""}
|
|
249
270
|
`}}
|
|
250
|
-
`;
|
|
271
|
+
`;X.div`
|
|
251
272
|
cursor: pointer;
|
|
252
273
|
transition: all 0.2s ease-in-out;
|
|
253
274
|
|
|
254
275
|
&:hover:not([disabled]) {
|
|
255
276
|
transform: scale(1.2);
|
|
256
277
|
}
|
|
257
|
-
`;const
|
|
278
|
+
`;const nt=v.forwardRef(function({clickable:t,disabled:r,hoverColor:n,icon:o,iconClass:i="",iconColor:a,iconMask:s,iconSize:c,iconTransform:u,iconType:f="fa-solid",onClick:y,rotation:h,...g},x){return b.jsx(zd,{$clickable:t,$color:a,$disabled:r,$hoverColor:n,$rotation:h,$size:c,"data-testid":`${o}-icon`,onClick:y,ref:x,...g,children:b.jsx("i",{className:`${f} fa-${o} ${i}`,...s!==void 0?{"data-fa-mask":s}:{},...u!==void 0?{"data-fa-transform":u}:{}})},`${f}-${o}`)}),Vd=X(yn)`
|
|
258
279
|
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
259
280
|
animation-fill-mode: both;
|
|
260
281
|
|
|
@@ -267,7 +288,7 @@ Check the top-level render call using <`+D+">.")}return E}}function Me(p,E){{if(
|
|
|
267
288
|
width: 100%;
|
|
268
289
|
}
|
|
269
290
|
}
|
|
270
|
-
`,
|
|
291
|
+
`,Bd=e=>e*1e3/100,fc=({progressTime:e=10,onComplete:t})=>{const[n,o]=v.useState(0);return v.useEffect(()=>{n===100&&(t==null||t())},[n,t]),v.useEffect(()=>{const i=setInterval(()=>{o(a=>a===100?0:a+1)},Bd(e));return()=>{clearInterval(i)}},[n,e]),b.jsx(Je,{bgColor:T.palette.gray[200],height:"4px",children:b.jsx(Vd,{$animationTime:e,bgGradient:T.palette.gradients["01"],height:"100%",width:`${n}%`})})},Wd=v.forwardRef(function({aligned:t="end",progressTime:r=10,items:n,bgColor:o,variant:i="simple"},a){const s=i==="progress"&&n.length>1,[c,u]=v.useState(!!s),[f,y]=v.useState(s?0:-1),h=v.useCallback(x=>()=>{y(x),Td(x,f,u)},[f]),g=v.useCallback(()=>{y(x=>x===n.length-1?0:x+1)},[n.length]);return b.jsx(Je,{ref:a,children:n.map((x,S)=>{const k=S===f&&c;return b.jsxs(Je,{bgColor:o??T.palette.white,children:[s&&k?b.jsx(fc,{onComplete:g,progressTime:r}):void 0,b.jsxs(Je,{bgColorHover:jd(i),borderBottom:Cd(S,k,n.length,i),borderColor:Pd(i),borderTop:Ed(k,i),cursor:"pointer",onClick:h(S),padding:Od(i),children:[b.jsxs(Je,{display:"flex",flexDirection:Dd(t),gap:.75,justify:"space-between",children:[b.jsx(ze,{color:T.palette.gray[800],fontWeight:"bold",size:dc(i),sizeSm:"sm",children:x.title}),b.jsx(nt,{icon:kd(k,i),iconColor:Id(i),iconSize:"xs",iconType:"fa-light"})]}),b.jsx(Wa,{isSelectedAndOpen:k,item:x,render:i!=="platform",variant:i})]}),b.jsx(Wa,{isSelectedAndOpen:k,item:x,render:i==="platform",variant:i})]},x.title)})})}),{getVariant:Ud}=Ns(e=>({ghost:`
|
|
271
292
|
background: ${e.palette.white};
|
|
272
293
|
border: none;
|
|
273
294
|
color: ${e.palette.gray[800]};
|
|
@@ -308,6 +329,8 @@ Check the top-level render call using <`+D+">.")}return E}}function Me(p,E){{if(
|
|
|
308
329
|
--btn-padding-y: ${e.spacing[.75]};
|
|
309
330
|
}
|
|
310
331
|
`,link:`
|
|
332
|
+
--btn-padding-x: 0;
|
|
333
|
+
--btn-padding-y: 0;
|
|
311
334
|
&.dark {
|
|
312
335
|
color: ${e.palette.gray[200]};
|
|
313
336
|
|
|
@@ -420,7 +443,7 @@ Check the top-level render call using <`+D+">.")}return E}}function Me(p,E){{if(
|
|
|
420
443
|
background-color: ${e.palette.primary[500]};
|
|
421
444
|
color: ${e.palette.white};
|
|
422
445
|
}
|
|
423
|
-
`})),
|
|
446
|
+
`})),pc=X(lc)`
|
|
424
447
|
${({theme:e,$variant:t})=>`
|
|
425
448
|
align-items: center;
|
|
426
449
|
border-radius: var(--btn-spacing);
|
|
@@ -435,22 +458,22 @@ Check the top-level render call using <`+D+">.")}return E}}function Me(p,E){{if(
|
|
|
435
458
|
white-space: nowrap;
|
|
436
459
|
|
|
437
460
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
438
|
-
|
|
461
|
+
${t!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
|
|
439
462
|
}
|
|
440
463
|
|
|
441
|
-
${
|
|
464
|
+
${Ud(e,t??"primaryWeb")}
|
|
442
465
|
`}
|
|
443
|
-
`,Vr=Math.min,xr=Math.max,Qn=Math.round,Mn=Math.floor,ur=e=>({x:e,y:e}),qd={left:"right",right:"left",bottom:"top",top:"bottom"},Gd={start:"end",end:"start"};function li(e,t,r){return xr(e,Vr(t,r))}function yn(e,t){return typeof e=="function"?e(t):e}function Sr(e){return e.split("-")[0]}function mn(e){return e.split("-")[1]}function lc(e){return e==="x"?"y":"x"}function Vi(e){return e==="y"?"height":"width"}function zr(e){return["top","bottom"].includes(Sr(e))?"y":"x"}function zi(e){return lc(zr(e))}function Hd(e,t,r){r===void 0&&(r=!1);const n=mn(e),o=zi(e),i=Vi(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Kn(a)),[a,Kn(a)]}function Yd(e){const t=Kn(e);return[ui(e),t,ui(t)]}function ui(e){return e.replace(/start|end/g,t=>Gd[t])}function Qd(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function Kd(e,t,r,n){const o=mn(e);let i=Qd(Sr(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(ui)))),i}function Kn(e){return e.replace(/left|right|bottom|top/g,t=>qd[t])}function Jd(e){return{top:0,right:0,bottom:0,left:0,...e}}function uc(e){return typeof e!="number"?Jd(e):{top:e,right:e,bottom:e,left:e}}function Jn(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Va(e,t,r){let{reference:n,floating:o}=e;const i=zr(t),a=zi(t),s=Vi(a),c=Sr(t),u=i==="y",f=n.x+n.width/2-o.width/2,y=n.y+n.height/2-o.height/2,m=n[s]/2-o[s]/2;let v;switch(c){case"top":v={x:f,y:n.y-o.height};break;case"bottom":v={x:f,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y};break;case"left":v={x:n.x-o.width,y};break;default:v={x:n.x,y:n.y}}switch(mn(t)){case"start":v[a]-=m*(r&&u?-1:1);break;case"end":v[a]+=m*(r&&u?-1:1);break}return v}const Xd=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y}=Va(u,n,c),m=n,v={},w=0;for(let _=0;_<s.length;_++){const{name:O,fn:$}=s[_],{x:C,y:P,data:I,reset:M}=await $({x:f,y,initialPlacement:n,placement:m,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:e,floating:t}});f=C??f,y=P??y,v={...v,[O]:{...v[O],...I}},M&&w<=50&&(w++,typeof M=="object"&&(M.placement&&(m=M.placement),M.rects&&(u=M.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):M.rects),{x:f,y}=Va(u,m,c)),_=-1)}return{x:f,y,placement:m,strategy:o,middlewareData:v}};async function dc(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:y="floating",altBoundary:m=!1,padding:v=0}=yn(t,e),w=uc(v),O=s[m?y==="floating"?"reference":"floating":y],$=Jn(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(O)))==null||r?O:O.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),C=y==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),I=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},M=Jn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:P,strategy:c}):C);return{top:($.top-M.top+w.top)/I.y,bottom:(M.bottom-$.bottom+w.bottom)/I.y,left:($.left-M.left+w.left)/I.x,right:(M.right-$.right+w.right)/I.x}}const Zd=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:f=0}=yn(e,t)||{};if(u==null)return{};const y=uc(f),m={x:r,y:n},v=zi(o),w=Vi(v),_=await a.getDimensions(u),O=v==="y",$=O?"top":"left",C=O?"bottom":"right",P=O?"clientHeight":"clientWidth",I=i.reference[w]+i.reference[v]-m[v]-i.floating[w],M=m[v]-i.reference[v],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let T=k?k[P]:0;(!T||!await(a.isElement==null?void 0:a.isElement(k)))&&(T=s.floating[P]||i.floating[w]);const V=I/2-M/2,U=T/2-_[w]/2-1,Y=Vr(y[$],U),pe=Vr(y[C],U),ve=Y,se=T-_[w]-pe,N=T/2-_[w]/2+V,J=li(ve,N,se),z=!c.arrow&&mn(o)!=null&&N!==J&&i.reference[w]/2-(N<ve?Y:pe)-_[w]/2<0,te=z?N<ve?N-ve:N-se:0;return{[v]:m[v]+te,data:{[v]:J,centerOffset:N-J-te,...z&&{alignmentOffset:te}},reset:z}}}),ef=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:y=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:_=!0,...O}=yn(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const $=Sr(o),C=zr(s),P=Sr(s)===s,I=await(c.isRTL==null?void 0:c.isRTL(u.floating)),M=m||(P||!_?[Kn(s)]:Yd(s)),k=w!=="none";!m&&k&&M.push(...Kd(s,_,w,I));const T=[s,...M],V=await dc(t,O),U=[];let Y=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&U.push(V[$]),y){const N=Hd(o,a,I);U.push(V[N[0]],V[N[1]])}if(Y=[...Y,{placement:o,overflows:U}],!U.every(N=>N<=0)){var pe,ve;const N=(((pe=i.flip)==null?void 0:pe.index)||0)+1,J=T[N];if(J)return{data:{index:N,overflows:Y},reset:{placement:J}};let z=(ve=Y.filter(te=>te.overflows[0]<=0).sort((te,B)=>te.overflows[1]-B.overflows[1])[0])==null?void 0:ve.placement;if(!z)switch(v){case"bestFit":{var se;const te=(se=Y.filter(B=>{if(k){const ie=zr(B.placement);return ie===C||ie==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ie=>ie>0).reduce((ie,H)=>ie+H,0)]).sort((B,ie)=>B[1]-ie[1])[0])==null?void 0:se[0];te&&(z=te);break}case"initialPlacement":z=s;break}if(o!==z)return{reset:{placement:z}}}return{}}}};async function tf(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Sr(r),s=mn(r),c=zr(r)==="y",u=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,y=yn(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:w}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return s&&typeof w=="number"&&(v=s==="end"?w*-1:w),c?{x:v*f,y:m*u}:{x:m*u,y:v*f}}const rf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await tf(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},nf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:O=>{let{x:$,y:C}=O;return{x:$,y:C}}},...c}=yn(e,t),u={x:r,y:n},f=await dc(t,c),y=zr(Sr(o)),m=lc(y);let v=u[m],w=u[y];if(i){const O=m==="y"?"top":"left",$=m==="y"?"bottom":"right",C=v+f[O],P=v-f[$];v=li(C,v,P)}if(a){const O=y==="y"?"top":"left",$=y==="y"?"bottom":"right",C=w+f[O],P=w-f[$];w=li(C,w,P)}const _=s.fn({...t,[m]:v,[y]:w});return{..._,data:{x:_.x-r,y:_.y-n,enabled:{[m]:i,[y]:a}}}}}};function ho(){return typeof window<"u"}function Ur(e){return fc(e)?(e.nodeName||"").toLowerCase():"#document"}function Dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zt(e){var t;return(t=(fc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fc(e){return ho()?e instanceof Node||e instanceof Dt(e).Node:!1}function Ht(e){return ho()?e instanceof Element||e instanceof Dt(e).Element:!1}function Xt(e){return ho()?e instanceof HTMLElement||e instanceof Dt(e).HTMLElement:!1}function za(e){return!ho()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Dt(e).ShadowRoot}function vn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function of(e){return["table","td","th"].includes(Ur(e))}function go(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bi(e){const t=Wi(),r=Ht(e)?Yt(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function af(e){let t=dr(e);for(;Xt(t)&&!Br(t);){if(Bi(t))return t;if(go(t))return null;t=dr(t)}return null}function Wi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Br(e){return["html","body","#document"].includes(Ur(e))}function Yt(e){return Dt(e).getComputedStyle(e)}function yo(e){return Ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dr(e){if(Ur(e)==="html")return e;const t=e.assignedSlot||e.parentNode||za(e)&&e.host||Zt(e);return za(t)?t.host:t}function pc(e){const t=dr(e);return Br(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xt(t)&&vn(t)?t:pc(t)}function rn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=pc(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Dt(o);if(i){const s=di(a);return t.concat(a,a.visualViewport||[],vn(o)?o:[],s&&r?rn(s):[])}return t.concat(o,rn(o,[],r))}function di(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hc(e){const t=Yt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Xt(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=Qn(r)!==i||Qn(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Ui(e){return Ht(e)?e:e.contextElement}function Dr(e){const t=Ui(e);if(!Xt(t))return ur(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=hc(t);let a=(i?Qn(r.width):r.width)/n,s=(i?Qn(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const sf=ur(0);function gc(e){const t=Dt(e);return!Wi()||!t.visualViewport?sf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Dt(e)?!1:t}function Cr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Ui(e);let a=ur(1);t&&(n?Ht(n)&&(a=Dr(n)):a=Dr(e));const s=cf(i,r,n)?gc(i):ur(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,y=o.height/a.y;if(i){const m=Dt(i),v=n&&Ht(n)?Dt(n):n;let w=m,_=di(w);for(;_&&n&&v!==w;){const O=Dr(_),$=_.getBoundingClientRect(),C=Yt(_),P=$.left+(_.clientLeft+parseFloat(C.paddingLeft))*O.x,I=$.top+(_.clientTop+parseFloat(C.paddingTop))*O.y;c*=O.x,u*=O.y,f*=O.x,y*=O.y,c+=P,u+=I,w=Dt(_),_=di(w)}}return Jn({width:f,height:y,x:c,y:u})}function lf(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=Zt(n),s=t?go(t.floating):!1;if(n===a||s&&i)return r;let c={scrollLeft:0,scrollTop:0},u=ur(1);const f=ur(0),y=Xt(n);if((y||!y&&!i)&&((Ur(n)!=="body"||vn(a))&&(c=yo(n)),Xt(n))){const m=Cr(n);u=Dr(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x,y:r.y*u.y-c.scrollTop*u.y+f.y}}function uf(e){return Array.from(e.getClientRects())}function fi(e,t){const r=yo(e).scrollLeft;return t?t.left+r:Cr(Zt(e)).left+r}function df(e){const t=Zt(e),r=yo(e),n=e.ownerDocument.body,o=xr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=xr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+fi(e);const s=-r.scrollTop;return Yt(n).direction==="rtl"&&(a+=xr(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}function ff(e,t){const r=Dt(e),n=Zt(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const u=Wi();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function pf(e,t){const r=Cr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Xt(e)?Dr(e):ur(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,u=n*i.y;return{width:a,height:s,x:c,y:u}}function Ba(e,t,r){let n;if(t==="viewport")n=ff(e,r);else if(t==="document")n=df(Zt(e));else if(Ht(t))n=pf(t,r);else{const o=gc(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Jn(n)}function yc(e,t){const r=dr(e);return r===t||!Ht(r)||Br(r)?!1:Yt(r).position==="fixed"||yc(r,t)}function hf(e,t){const r=t.get(e);if(r)return r;let n=rn(e,[],!1).filter(s=>Ht(s)&&Ur(s)!=="body"),o=null;const i=Yt(e).position==="fixed";let a=i?dr(e):e;for(;Ht(a)&&!Br(a);){const s=Yt(a),c=Bi(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||vn(a)&&!c&&yc(e,a))?n=n.filter(f=>f!==a):o=s,a=dr(a)}return t.set(e,n),n}function gf(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?go(t)?[]:hf(t,this._c):[].concat(r),n],s=a[0],c=a.reduce((u,f)=>{const y=Ba(t,f,o);return u.top=xr(y.top,u.top),u.right=Vr(y.right,u.right),u.bottom=Vr(y.bottom,u.bottom),u.left=xr(y.left,u.left),u},Ba(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yf(e){const{width:t,height:r}=hc(e);return{width:t,height:r}}function mf(e,t,r){const n=Xt(t),o=Zt(t),i=r==="fixed",a=Cr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=ur(0);if(n||!n&&!i)if((Ur(t)!=="body"||vn(o))&&(s=yo(t)),n){const v=Cr(t,!0,i,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&(c.x=fi(o));let u=0,f=0;if(o&&!n&&!i){const v=o.getBoundingClientRect();f=v.top+s.scrollTop,u=v.left+s.scrollLeft-fi(o,v)}const y=a.left+s.scrollLeft-c.x-u,m=a.top+s.scrollTop-c.y-f;return{x:y,y:m,width:a.width,height:a.height}}function Go(e){return Yt(e).position==="static"}function Wa(e,t){if(!Xt(e)||Yt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Zt(e)===r&&(r=r.ownerDocument.body),r}function mc(e,t){const r=Dt(e);if(go(e))return r;if(!Xt(e)){let o=dr(e);for(;o&&!Br(o);){if(Ht(o)&&!Go(o))return o;o=dr(o)}return r}let n=Wa(e,t);for(;n&&of(n)&&Go(n);)n=Wa(n,t);return n&&Br(n)&&Go(n)&&!Bi(n)?r:n||af(e)||r}const vf=async function(e){const t=this.getOffsetParent||mc,r=this.getDimensions,n=await r(e.floating);return{reference:mf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function bf(e){return Yt(e).direction==="rtl"}const wf={convertOffsetParentRelativeRectToViewportRelativeRect:lf,getDocumentElement:Zt,getClippingRect:gf,getOffsetParent:mc,getElementRects:vf,getClientRects:uf,getDimensions:yf,getScale:Dr,isElement:Ht,isRTL:bf};function xf(e,t){let r=null,n;const o=Zt(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:u,top:f,width:y,height:m}=e.getBoundingClientRect();if(s||t(),!y||!m)return;const v=Mn(f),w=Mn(o.clientWidth-(u+y)),_=Mn(o.clientHeight-(f+m)),O=Mn(u),C={rootMargin:-v+"px "+-w+"px "+-_+"px "+-O+"px",threshold:xr(0,Vr(1,c))||1};let P=!0;function I(M){const k=M[0].intersectionRatio;if(k!==c){if(!P)return a();k?a(!1,k):n=setTimeout(()=>{a(!1,1e-7)},1e3)}P=!1}try{r=new IntersectionObserver(I,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(I,C)}r.observe(e)}return a(!0),i}function vc(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Ui(e),f=o||i?[...u?rn(u):[],...rn(t)]:[];f.forEach($=>{o&&$.addEventListener("scroll",r,{passive:!0}),i&&$.addEventListener("resize",r)});const y=u&&s?xf(u,r):null;let m=-1,v=null;a&&(v=new ResizeObserver($=>{let[C]=$;C&&C.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var P;(P=v)==null||P.observe(t)})),r()}),u&&!c&&v.observe(u),v.observe(t));let w,_=c?Cr(e):null;c&&O();function O(){const $=Cr(e);_&&($.x!==_.x||$.y!==_.y||$.width!==_.width||$.height!==_.height)&&r(),_=$,w=requestAnimationFrame(O)}return r(),()=>{var $;f.forEach(C=>{o&&C.removeEventListener("scroll",r),i&&C.removeEventListener("resize",r)}),y==null||y(),($=v)==null||$.disconnect(),v=null,c&&cancelAnimationFrame(w)}}const bc=rf,$f=nf,wc=ef,_f=Zd,pi=(e,t,r)=>{const n=new Map,o={platform:wf,...r},i={...o.platform,_c:n};return Xd(e,t,{...o,platform:i})};var Bn=typeof document<"u"?g.useLayoutEffect:g.useEffect;function Xn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Xn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Xn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ua(e,t){const r=xc(e);return Math.round(t*r)/r}function Ho(e){const t=dt.useRef(e);return Bn(()=>{t.current=e}),t}function Sf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,y]=dt.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=dt.useState(n);Xn(m,n)||v(n);const[w,_]=dt.useState(null),[O,$]=dt.useState(null),C=dt.useCallback(B=>{B!==k.current&&(k.current=B,_(B))},[]),P=dt.useCallback(B=>{B!==T.current&&(T.current=B,$(B))},[]),I=i||w,M=a||O,k=dt.useRef(null),T=dt.useRef(null),V=dt.useRef(f),U=c!=null,Y=Ho(c),pe=Ho(o),ve=Ho(u),se=dt.useCallback(()=>{if(!k.current||!T.current)return;const B={placement:t,strategy:r,middleware:m};pe.current&&(B.platform=pe.current),pi(k.current,T.current,B).then(ie=>{const H={...ie,isPositioned:ve.current!==!1};N.current&&!Xn(V.current,H)&&(V.current=H,Kl.flushSync(()=>{y(H)}))})},[m,t,r,pe,ve]);Bn(()=>{u===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,y(B=>({...B,isPositioned:!1})))},[u]);const N=dt.useRef(!1);Bn(()=>(N.current=!0,()=>{N.current=!1}),[]),Bn(()=>{if(I&&(k.current=I),M&&(T.current=M),I&&M){if(Y.current)return Y.current(I,M,se);se()}},[I,M,se,Y,U]);const J=dt.useMemo(()=>({reference:k,floating:T,setReference:C,setFloating:P}),[C,P]),z=dt.useMemo(()=>({reference:I,floating:M}),[I,M]),te=dt.useMemo(()=>{const B={position:r,left:0,top:0};if(!z.floating)return B;const ie=Ua(z.floating,f.x),H=Ua(z.floating,f.y);return s?{...B,transform:"translate("+ie+"px, "+H+"px)",...xc(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ie,top:H}},[r,s,z.floating,f.x,f.y]);return dt.useMemo(()=>({...f,update:se,refs:J,elements:z,floatingStyles:te}),[f,se,J,z,te])}const Cf=(e,t)=>({...bc(e),options:[e,t]}),Ef=(e,t)=>({...wc(e),options:[e,t]});var kf=Object.prototype;function Af(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||kf;return e===r}var $c=Af;function Tf(e,t){return function(r){return e(t(r))}}var Of=Tf,Rf=Of,jf=Rf(Object.keys,Object),Pf=jf,Df=$c,If=Pf,Mf=Object.prototype,Lf=Mf.hasOwnProperty;function Nf(e){if(!Df(e))return If(e);var t=[];for(var r in Object(e))Lf.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ff=Nf,Vf=typeof Rn=="object"&&Rn&&Rn.Object===Object&&Rn,_c=Vf,zf=_c,Bf=typeof self=="object"&&self&&self.Object===Object&&self,Wf=zf||Bf||Function("return this")(),pr=Wf,Uf=pr,qf=Uf.Symbol,Sc=qf,qa=Sc,Cc=Object.prototype,Gf=Cc.hasOwnProperty,Hf=Cc.toString,Zr=qa?qa.toStringTag:void 0;function Yf(e){var t=Gf.call(e,Zr),r=e[Zr];try{e[Zr]=void 0;var n=!0}catch{}var o=Hf.call(e);return n&&(t?e[Zr]=r:delete e[Zr]),o}var Qf=Yf,Kf=Object.prototype,Jf=Kf.toString;function Xf(e){return Jf.call(e)}var Zf=Xf,Ga=Sc,ep=Qf,tp=Zf,rp="[object Null]",np="[object Undefined]",Ha=Ga?Ga.toStringTag:void 0;function op(e){return e==null?e===void 0?np:rp:Ha&&Ha in Object(e)?ep(e):tp(e)}var mo=op;function ip(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ec=ip,ap=mo,sp=Ec,cp="[object AsyncFunction]",lp="[object Function]",up="[object GeneratorFunction]",dp="[object Proxy]";function fp(e){if(!sp(e))return!1;var t=ap(e);return t==lp||t==up||t==cp||t==dp}var kc=fp,pp=pr,hp=pp["__core-js_shared__"],gp=hp,Yo=gp,Ya=function(){var e=/[^.]+$/.exec(Yo&&Yo.keys&&Yo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yp(e){return!!Ya&&Ya in e}var mp=yp,vp=Function.prototype,bp=vp.toString;function wp(e){if(e!=null){try{return bp.call(e)}catch{}try{return e+""}catch{}}return""}var Ac=wp,xp=kc,$p=mp,_p=Ec,Sp=Ac,Cp=/[\\^$.*+?()[\]{}|]/g,Ep=/^\[object .+?Constructor\]$/,kp=Function.prototype,Ap=Object.prototype,Tp=kp.toString,Op=Ap.hasOwnProperty,Rp=RegExp("^"+Tp.call(Op).replace(Cp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jp(e){if(!_p(e)||$p(e))return!1;var t=xp(e)?Rp:Ep;return t.test(Sp(e))}var Pp=jp;function Dp(e,t){return e==null?void 0:e[t]}var Ip=Dp,Mp=Pp,Lp=Ip;function Np(e,t){var r=Lp(e,t);return Mp(r)?r:void 0}var bn=Np,Fp=bn,Vp=pr,zp=Fp(Vp,"DataView"),Bp=zp,Wp=bn,Up=pr,qp=Wp(Up,"Map"),Gp=qp,Hp=bn,Yp=pr,Qp=Hp(Yp,"Promise"),Kp=Qp,Jp=bn,Xp=pr,Zp=Jp(Xp,"Set"),eh=Zp,th=bn,rh=pr,nh=th(rh,"WeakMap"),oh=nh,hi=Bp,gi=Gp,yi=Kp,mi=eh,vi=oh,Tc=mo,qr=Ac,Qa="[object Map]",ih="[object Object]",Ka="[object Promise]",Ja="[object Set]",Xa="[object WeakMap]",Za="[object DataView]",ah=qr(hi),sh=qr(gi),ch=qr(yi),lh=qr(mi),uh=qr(vi),yr=Tc;(hi&&yr(new hi(new ArrayBuffer(1)))!=Za||gi&&yr(new gi)!=Qa||yi&&yr(yi.resolve())!=Ka||mi&&yr(new mi)!=Ja||vi&&yr(new vi)!=Xa)&&(yr=function(e){var t=Tc(e),r=t==ih?e.constructor:void 0,n=r?qr(r):"";if(n)switch(n){case ah:return Za;case sh:return Qa;case ch:return Ka;case lh:return Ja;case uh:return Xa}return t});var dh=yr;function fh(e){return e!=null&&typeof e=="object"}var qi=fh,ph=mo,hh=qi,gh="[object Arguments]";function yh(e){return hh(e)&&ph(e)==gh}var mh=yh,es=mh,vh=qi,Oc=Object.prototype,bh=Oc.hasOwnProperty,wh=Oc.propertyIsEnumerable,xh=es(function(){return arguments}())?es:function(e){return vh(e)&&bh.call(e,"callee")&&!wh.call(e,"callee")},$h=xh,_h=Array.isArray,Sh=_h,Ch=9007199254740991;function Eh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ch}var Rc=Eh,kh=kc,Ah=Rc;function Th(e){return e!=null&&Ah(e.length)&&!kh(e)}var Oh=Th,Zn={exports:{}};function Rh(){return!1}var jh=Rh;Zn.exports;(function(e,t){var r=pr,n=jh,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u})(Zn,Zn.exports);var Ph=Zn.exports,Dh=mo,Ih=Rc,Mh=qi,Lh="[object Arguments]",Nh="[object Array]",Fh="[object Boolean]",Vh="[object Date]",zh="[object Error]",Bh="[object Function]",Wh="[object Map]",Uh="[object Number]",qh="[object Object]",Gh="[object RegExp]",Hh="[object Set]",Yh="[object String]",Qh="[object WeakMap]",Kh="[object ArrayBuffer]",Jh="[object DataView]",Xh="[object Float32Array]",Zh="[object Float64Array]",eg="[object Int8Array]",tg="[object Int16Array]",rg="[object Int32Array]",ng="[object Uint8Array]",og="[object Uint8ClampedArray]",ig="[object Uint16Array]",ag="[object Uint32Array]",De={};De[Xh]=De[Zh]=De[eg]=De[tg]=De[rg]=De[ng]=De[og]=De[ig]=De[ag]=!0;De[Lh]=De[Nh]=De[Kh]=De[Fh]=De[Jh]=De[Vh]=De[zh]=De[Bh]=De[Wh]=De[Uh]=De[qh]=De[Gh]=De[Hh]=De[Yh]=De[Qh]=!1;function sg(e){return Mh(e)&&Ih(e.length)&&!!De[Dh(e)]}var cg=sg;function lg(e){return function(t){return e(t)}}var ug=lg,eo={exports:{}};eo.exports;(function(e,t){var r=_c,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(eo,eo.exports);var dg=eo.exports,fg=cg,pg=ug,ts=dg,rs=ts&&ts.isTypedArray,hg=rs?pg(rs):fg,gg=hg,yg=Ff,mg=dh,vg=$h,bg=Sh,wg=Oh,xg=Ph,$g=$c,_g=gg,Sg="[object Map]",Cg="[object Set]",Eg=Object.prototype,kg=Eg.hasOwnProperty;function Ag(e){if(e==null)return!0;if(wg(e)&&(bg(e)||typeof e=="string"||typeof e.splice=="function"||xg(e)||_g(e)||vg(e)))return!e.length;var t=mg(e);if(t==Sg||t==Cg)return!e.size;if($g(e))return!yg(e).length;for(var r in e)if(kg.call(e,r))return!1;return!0}var Tg=Ag;const Wn=Is(Tg);var jc={exports:{}};/*!
|
|
466
|
+
`,zr=Math.min,xr=Math.max,Xn=Math.round,zn=Math.floor,ur=e=>({x:e,y:e}),Gd={left:"right",right:"left",bottom:"top",top:"bottom"},qd={start:"end",end:"start"};function di(e,t,r){return xr(e,zr(t,r))}function vn(e,t){return typeof e=="function"?e(t):e}function Sr(e){return e.split("-")[0]}function bn(e){return e.split("-")[1]}function hc(e){return e==="x"?"y":"x"}function Bi(e){return e==="y"?"height":"width"}function Vr(e){return["top","bottom"].includes(Sr(e))?"y":"x"}function Wi(e){return hc(Vr(e))}function Hd(e,t,r){r===void 0&&(r=!1);const n=bn(e),o=Wi(e),i=Bi(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Zn(a)),[a,Zn(a)]}function Yd(e){const t=Zn(e);return[fi(e),t,fi(t)]}function fi(e){return e.replace(/start|end/g,t=>qd[t])}function Qd(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function Kd(e,t,r,n){const o=bn(e);let i=Qd(Sr(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(fi)))),i}function Zn(e){return e.replace(/left|right|bottom|top/g,t=>Gd[t])}function Jd(e){return{top:0,right:0,bottom:0,left:0,...e}}function gc(e){return typeof e!="number"?Jd(e):{top:e,right:e,bottom:e,left:e}}function eo(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Ua(e,t,r){let{reference:n,floating:o}=e;const i=Vr(t),a=Wi(t),s=Bi(a),c=Sr(t),u=i==="y",f=n.x+n.width/2-o.width/2,y=n.y+n.height/2-o.height/2,h=n[s]/2-o[s]/2;let g;switch(c){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y};break;case"left":g={x:n.x-o.width,y};break;default:g={x:n.x,y:n.y}}switch(bn(t)){case"start":g[a]-=h*(r&&u?-1:1);break;case"end":g[a]+=h*(r&&u?-1:1);break}return g}const Xd=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y}=Ua(u,n,c),h=n,g={},x=0;for(let S=0;S<s.length;S++){const{name:k,fn:_}=s[S],{x:C,y:P,data:M,reset:D}=await _({x:f,y,initialPlacement:n,placement:h,strategy:o,middlewareData:g,rects:u,platform:a,elements:{reference:e,floating:t}});f=C??f,y=P??y,g={...g,[k]:{...g[k],...M}},D&&x<=50&&(x++,typeof D=="object"&&(D.placement&&(h=D.placement),D.rects&&(u=D.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):D.rects),{x:f,y}=Ua(u,h,c)),S=-1)}return{x:f,y,placement:h,strategy:o,middlewareData:g}};async function yc(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:y="floating",altBoundary:h=!1,padding:g=0}=vn(t,e),x=gc(g),k=s[h?y==="floating"?"reference":"floating":y],_=eo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(k)))==null||r?k:k.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),C=y==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),M=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},D=eo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:P,strategy:c}):C);return{top:(_.top-D.top+x.top)/M.y,bottom:(D.bottom-_.bottom+x.bottom)/M.y,left:(_.left-D.left+x.left)/M.x,right:(D.right-_.right+x.right)/M.x}}const Zd=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:f=0}=vn(e,t)||{};if(u==null)return{};const y=gc(f),h={x:r,y:n},g=Wi(o),x=Bi(g),S=await a.getDimensions(u),k=g==="y",_=k?"top":"left",C=k?"bottom":"right",P=k?"clientHeight":"clientWidth",M=i.reference[x]+i.reference[g]-h[g]-i.floating[x],D=h[g]-i.reference[g],A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let j=A?A[P]:0;(!j||!await(a.isElement==null?void 0:a.isElement(A)))&&(j=s.floating[P]||i.floating[x]);const z=M/2-D/2,H=j/2-S[x]/2-1,V=zr(y[_],H),ie=zr(y[C],H),he=V,ae=j-S[x]-ie,N=j/2-S[x]/2+z,J=di(he,N,ae),B=!c.arrow&&bn(o)!=null&&N!==J&&i.reference[x]/2-(N<he?V:ie)-S[x]/2<0,re=B?N<he?N-he:N-ae:0;return{[g]:h[g]+re,data:{[g]:J,centerOffset:N-J-re,...B&&{alignmentOffset:re}},reset:B}}}),ef=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:y=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,...k}=vn(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const _=Sr(o),C=Vr(s),P=Sr(s)===s,M=await(c.isRTL==null?void 0:c.isRTL(u.floating)),D=h||(P||!S?[Zn(s)]:Yd(s)),A=x!=="none";!h&&A&&D.push(...Kd(s,S,x,M));const j=[s,...D],z=await yc(t,k),H=[];let V=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&H.push(z[_]),y){const N=Hd(o,a,M);H.push(z[N[0]],z[N[1]])}if(V=[...V,{placement:o,overflows:H}],!H.every(N=>N<=0)){var ie,he;const N=(((ie=i.flip)==null?void 0:ie.index)||0)+1,J=j[N];if(J)return{data:{index:N,overflows:V},reset:{placement:J}};let B=(he=V.filter(re=>re.overflows[0]<=0).sort((re,W)=>re.overflows[1]-W.overflows[1])[0])==null?void 0:he.placement;if(!B)switch(g){case"bestFit":{var ae;const re=(ae=V.filter(W=>{if(A){const se=Vr(W.placement);return se===C||se==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(se=>se>0).reduce((se,Y)=>se+Y,0)]).sort((W,se)=>W[1]-se[1])[0])==null?void 0:ae[0];re&&(B=re);break}case"initialPlacement":B=s;break}if(o!==B)return{reset:{placement:B}}}return{}}}};async function tf(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Sr(r),s=bn(r),c=Vr(r)==="y",u=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,y=vn(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:x}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return s&&typeof x=="number"&&(g=s==="end"?x*-1:x),c?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const rf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await tf(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},nf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:k=>{let{x:_,y:C}=k;return{x:_,y:C}}},...c}=vn(e,t),u={x:r,y:n},f=await yc(t,c),y=Vr(Sr(o)),h=hc(y);let g=u[h],x=u[y];if(i){const k=h==="y"?"top":"left",_=h==="y"?"bottom":"right",C=g+f[k],P=g-f[_];g=di(C,g,P)}if(a){const k=y==="y"?"top":"left",_=y==="y"?"bottom":"right",C=x+f[k],P=x-f[_];x=di(C,x,P)}const S=s.fn({...t,[h]:g,[y]:x});return{...S,data:{x:S.x-r,y:S.y-n,enabled:{[h]:i,[y]:a}}}}}};function mo(){return typeof window<"u"}function Ur(e){return mc(e)?(e.nodeName||"").toLowerCase():"#document"}function It(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zt(e){var t;return(t=(mc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mc(e){return mo()?e instanceof Node||e instanceof It(e).Node:!1}function Ht(e){return mo()?e instanceof Element||e instanceof It(e).Element:!1}function Xt(e){return mo()?e instanceof HTMLElement||e instanceof It(e).HTMLElement:!1}function Ga(e){return!mo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof It(e).ShadowRoot}function wn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function of(e){return["table","td","th"].includes(Ur(e))}function vo(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ui(e){const t=Gi(),r=Ht(e)?Yt(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function af(e){let t=dr(e);for(;Xt(t)&&!Br(t);){if(Ui(t))return t;if(vo(t))return null;t=dr(t)}return null}function Gi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Br(e){return["html","body","#document"].includes(Ur(e))}function Yt(e){return It(e).getComputedStyle(e)}function bo(e){return Ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dr(e){if(Ur(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ga(e)&&e.host||Zt(e);return Ga(t)?t.host:t}function vc(e){const t=dr(e);return Br(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xt(t)&&wn(t)?t:vc(t)}function nn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=vc(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=It(o);if(i){const s=pi(a);return t.concat(a,a.visualViewport||[],wn(o)?o:[],s&&r?nn(s):[])}return t.concat(o,nn(o,[],r))}function pi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bc(e){const t=Yt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Xt(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=Xn(r)!==i||Xn(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function qi(e){return Ht(e)?e:e.contextElement}function Ir(e){const t=qi(e);if(!Xt(t))return ur(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=bc(t);let a=(i?Xn(r.width):r.width)/n,s=(i?Xn(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const sf=ur(0);function wc(e){const t=It(e);return!Gi()||!t.visualViewport?sf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==It(e)?!1:t}function Cr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=qi(e);let a=ur(1);t&&(n?Ht(n)&&(a=Ir(n)):a=Ir(e));const s=cf(i,r,n)?wc(i):ur(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,y=o.height/a.y;if(i){const h=It(i),g=n&&Ht(n)?It(n):n;let x=h,S=pi(x);for(;S&&n&&g!==x;){const k=Ir(S),_=S.getBoundingClientRect(),C=Yt(S),P=_.left+(S.clientLeft+parseFloat(C.paddingLeft))*k.x,M=_.top+(S.clientTop+parseFloat(C.paddingTop))*k.y;c*=k.x,u*=k.y,f*=k.x,y*=k.y,c+=P,u+=M,x=It(S),S=pi(x)}}return eo({width:f,height:y,x:c,y:u})}function lf(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=Zt(n),s=t?vo(t.floating):!1;if(n===a||s&&i)return r;let c={scrollLeft:0,scrollTop:0},u=ur(1);const f=ur(0),y=Xt(n);if((y||!y&&!i)&&((Ur(n)!=="body"||wn(a))&&(c=bo(n)),Xt(n))){const h=Cr(n);u=Ir(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x,y:r.y*u.y-c.scrollTop*u.y+f.y}}function uf(e){return Array.from(e.getClientRects())}function hi(e,t){const r=bo(e).scrollLeft;return t?t.left+r:Cr(Zt(e)).left+r}function df(e){const t=Zt(e),r=bo(e),n=e.ownerDocument.body,o=xr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=xr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+hi(e);const s=-r.scrollTop;return Yt(n).direction==="rtl"&&(a+=xr(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}function ff(e,t){const r=It(e),n=Zt(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const u=Gi();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function pf(e,t){const r=Cr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Xt(e)?Ir(e):ur(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,u=n*i.y;return{width:a,height:s,x:c,y:u}}function qa(e,t,r){let n;if(t==="viewport")n=ff(e,r);else if(t==="document")n=df(Zt(e));else if(Ht(t))n=pf(t,r);else{const o=wc(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return eo(n)}function xc(e,t){const r=dr(e);return r===t||!Ht(r)||Br(r)?!1:Yt(r).position==="fixed"||xc(r,t)}function hf(e,t){const r=t.get(e);if(r)return r;let n=nn(e,[],!1).filter(s=>Ht(s)&&Ur(s)!=="body"),o=null;const i=Yt(e).position==="fixed";let a=i?dr(e):e;for(;Ht(a)&&!Br(a);){const s=Yt(a),c=Ui(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||wn(a)&&!c&&xc(e,a))?n=n.filter(f=>f!==a):o=s,a=dr(a)}return t.set(e,n),n}function gf(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?vo(t)?[]:hf(t,this._c):[].concat(r),n],s=a[0],c=a.reduce((u,f)=>{const y=qa(t,f,o);return u.top=xr(y.top,u.top),u.right=zr(y.right,u.right),u.bottom=zr(y.bottom,u.bottom),u.left=xr(y.left,u.left),u},qa(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yf(e){const{width:t,height:r}=bc(e);return{width:t,height:r}}function mf(e,t,r){const n=Xt(t),o=Zt(t),i=r==="fixed",a=Cr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=ur(0);if(n||!n&&!i)if((Ur(t)!=="body"||wn(o))&&(s=bo(t)),n){const g=Cr(t,!0,i,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&(c.x=hi(o));let u=0,f=0;if(o&&!n&&!i){const g=o.getBoundingClientRect();f=g.top+s.scrollTop,u=g.left+s.scrollLeft-hi(o,g)}const y=a.left+s.scrollLeft-c.x-u,h=a.top+s.scrollTop-c.y-f;return{x:y,y:h,width:a.width,height:a.height}}function Yo(e){return Yt(e).position==="static"}function Ha(e,t){if(!Xt(e)||Yt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Zt(e)===r&&(r=r.ownerDocument.body),r}function $c(e,t){const r=It(e);if(vo(e))return r;if(!Xt(e)){let o=dr(e);for(;o&&!Br(o);){if(Ht(o)&&!Yo(o))return o;o=dr(o)}return r}let n=Ha(e,t);for(;n&&of(n)&&Yo(n);)n=Ha(n,t);return n&&Br(n)&&Yo(n)&&!Ui(n)?r:n||af(e)||r}const vf=async function(e){const t=this.getOffsetParent||$c,r=this.getDimensions,n=await r(e.floating);return{reference:mf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function bf(e){return Yt(e).direction==="rtl"}const wf={convertOffsetParentRelativeRectToViewportRelativeRect:lf,getDocumentElement:Zt,getClippingRect:gf,getOffsetParent:$c,getElementRects:vf,getClientRects:uf,getDimensions:yf,getScale:Ir,isElement:Ht,isRTL:bf};function xf(e,t){let r=null,n;const o=Zt(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:u,top:f,width:y,height:h}=e.getBoundingClientRect();if(s||t(),!y||!h)return;const g=zn(f),x=zn(o.clientWidth-(u+y)),S=zn(o.clientHeight-(f+h)),k=zn(u),C={rootMargin:-g+"px "+-x+"px "+-S+"px "+-k+"px",threshold:xr(0,zr(1,c))||1};let P=!0;function M(D){const A=D[0].intersectionRatio;if(A!==c){if(!P)return a();A?a(!1,A):n=setTimeout(()=>{a(!1,1e-7)},1e3)}P=!1}try{r=new IntersectionObserver(M,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(M,C)}r.observe(e)}return a(!0),i}function _c(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=qi(e),f=o||i?[...u?nn(u):[],...nn(t)]:[];f.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),i&&_.addEventListener("resize",r)});const y=u&&s?xf(u,r):null;let h=-1,g=null;a&&(g=new ResizeObserver(_=>{let[C]=_;C&&C.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=g)==null||P.observe(t)})),r()}),u&&!c&&g.observe(u),g.observe(t));let x,S=c?Cr(e):null;c&&k();function k(){const _=Cr(e);S&&(_.x!==S.x||_.y!==S.y||_.width!==S.width||_.height!==S.height)&&r(),S=_,x=requestAnimationFrame(k)}return r(),()=>{var _;f.forEach(C=>{o&&C.removeEventListener("scroll",r),i&&C.removeEventListener("resize",r)}),y==null||y(),(_=g)==null||_.disconnect(),g=null,c&&cancelAnimationFrame(x)}}const Sc=rf,$f=nf,Cc=ef,_f=Zd,gi=(e,t,r)=>{const n=new Map,o={platform:wf,...r},i={...o.platform,_c:n};return Xd(e,t,{...o,platform:i})};var qn=typeof document<"u"?v.useLayoutEffect:v.useEffect;function to(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!to(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!to(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ec(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ya(e,t){const r=Ec(e);return Math.round(t*r)/r}function Qo(e){const t=pt.useRef(e);return qn(()=>{t.current=e}),t}function Sf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,y]=pt.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=pt.useState(n);to(h,n)||g(n);const[x,S]=pt.useState(null),[k,_]=pt.useState(null),C=pt.useCallback(W=>{W!==A.current&&(A.current=W,S(W))},[]),P=pt.useCallback(W=>{W!==j.current&&(j.current=W,_(W))},[]),M=i||x,D=a||k,A=pt.useRef(null),j=pt.useRef(null),z=pt.useRef(f),H=c!=null,V=Qo(c),ie=Qo(o),he=Qo(u),ae=pt.useCallback(()=>{if(!A.current||!j.current)return;const W={placement:t,strategy:r,middleware:h};ie.current&&(W.platform=ie.current),gi(A.current,j.current,W).then(se=>{const Y={...se,isPositioned:he.current!==!1};N.current&&!to(z.current,Y)&&(z.current=Y,Jl.flushSync(()=>{y(Y)}))})},[h,t,r,ie,he]);qn(()=>{u===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,y(W=>({...W,isPositioned:!1})))},[u]);const N=pt.useRef(!1);qn(()=>(N.current=!0,()=>{N.current=!1}),[]),qn(()=>{if(M&&(A.current=M),D&&(j.current=D),M&&D){if(V.current)return V.current(M,D,ae);ae()}},[M,D,ae,V,H]);const J=pt.useMemo(()=>({reference:A,floating:j,setReference:C,setFloating:P}),[C,P]),B=pt.useMemo(()=>({reference:M,floating:D}),[M,D]),re=pt.useMemo(()=>{const W={position:r,left:0,top:0};if(!B.floating)return W;const se=Ya(B.floating,f.x),Y=Ya(B.floating,f.y);return s?{...W,transform:"translate("+se+"px, "+Y+"px)",...Ec(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:Y}},[r,s,B.floating,f.x,f.y]);return pt.useMemo(()=>({...f,update:ae,refs:J,elements:B,floatingStyles:re}),[f,ae,J,B,re])}const Cf=(e,t)=>({...Sc(e),options:[e,t]}),Ef=(e,t)=>({...Cc(e),options:[e,t]});var kf=Object.prototype;function Af(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||kf;return e===r}var kc=Af;function Tf(e,t){return function(r){return e(t(r))}}var Of=Tf,Rf=Of,jf=Rf(Object.keys,Object),Pf=jf,If=kc,Df=Pf,Mf=Object.prototype,Lf=Mf.hasOwnProperty;function Nf(e){if(!If(e))return Df(e);var t=[];for(var r in Object(e))Lf.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ff=Nf,zf=typeof Dn=="object"&&Dn&&Dn.Object===Object&&Dn,Ac=zf,Vf=Ac,Bf=typeof self=="object"&&self&&self.Object===Object&&self,Wf=Vf||Bf||Function("return this")(),pr=Wf,Uf=pr,Gf=Uf.Symbol,Tc=Gf,Qa=Tc,Oc=Object.prototype,qf=Oc.hasOwnProperty,Hf=Oc.toString,Zr=Qa?Qa.toStringTag:void 0;function Yf(e){var t=qf.call(e,Zr),r=e[Zr];try{e[Zr]=void 0;var n=!0}catch{}var o=Hf.call(e);return n&&(t?e[Zr]=r:delete e[Zr]),o}var Qf=Yf,Kf=Object.prototype,Jf=Kf.toString;function Xf(e){return Jf.call(e)}var Zf=Xf,Ka=Tc,ep=Qf,tp=Zf,rp="[object Null]",np="[object Undefined]",Ja=Ka?Ka.toStringTag:void 0;function op(e){return e==null?e===void 0?np:rp:Ja&&Ja in Object(e)?ep(e):tp(e)}var wo=op;function ip(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hi=ip;const ap=Di(Hi);var sp=wo,cp=Hi,lp="[object AsyncFunction]",up="[object Function]",dp="[object GeneratorFunction]",fp="[object Proxy]";function pp(e){if(!cp(e))return!1;var t=sp(e);return t==up||t==dp||t==lp||t==fp}var Rc=pp,hp=pr,gp=hp["__core-js_shared__"],yp=gp,Ko=yp,Xa=function(){var e=/[^.]+$/.exec(Ko&&Ko.keys&&Ko.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mp(e){return!!Xa&&Xa in e}var vp=mp,bp=Function.prototype,wp=bp.toString;function xp(e){if(e!=null){try{return wp.call(e)}catch{}try{return e+""}catch{}}return""}var jc=xp,$p=Rc,_p=vp,Sp=Hi,Cp=jc,Ep=/[\\^$.*+?()[\]{}|]/g,kp=/^\[object .+?Constructor\]$/,Ap=Function.prototype,Tp=Object.prototype,Op=Ap.toString,Rp=Tp.hasOwnProperty,jp=RegExp("^"+Op.call(Rp).replace(Ep,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pp(e){if(!Sp(e)||_p(e))return!1;var t=$p(e)?jp:kp;return t.test(Cp(e))}var Ip=Pp;function Dp(e,t){return e==null?void 0:e[t]}var Mp=Dp,Lp=Ip,Np=Mp;function Fp(e,t){var r=Np(e,t);return Lp(r)?r:void 0}var xn=Fp,zp=xn,Vp=pr,Bp=zp(Vp,"DataView"),Wp=Bp,Up=xn,Gp=pr,qp=Up(Gp,"Map"),Hp=qp,Yp=xn,Qp=pr,Kp=Yp(Qp,"Promise"),Jp=Kp,Xp=xn,Zp=pr,eh=Xp(Zp,"Set"),th=eh,rh=xn,nh=pr,oh=rh(nh,"WeakMap"),ih=oh,yi=Wp,mi=Hp,vi=Jp,bi=th,wi=ih,Pc=wo,Gr=jc,Za="[object Map]",ah="[object Object]",es="[object Promise]",ts="[object Set]",rs="[object WeakMap]",ns="[object DataView]",sh=Gr(yi),ch=Gr(mi),lh=Gr(vi),uh=Gr(bi),dh=Gr(wi),yr=Pc;(yi&&yr(new yi(new ArrayBuffer(1)))!=ns||mi&&yr(new mi)!=Za||vi&&yr(vi.resolve())!=es||bi&&yr(new bi)!=ts||wi&&yr(new wi)!=rs)&&(yr=function(e){var t=Pc(e),r=t==ah?e.constructor:void 0,n=r?Gr(r):"";if(n)switch(n){case sh:return ns;case ch:return Za;case lh:return es;case uh:return ts;case dh:return rs}return t});var fh=yr;function ph(e){return e!=null&&typeof e=="object"}var Yi=ph,hh=wo,gh=Yi,yh="[object Arguments]";function mh(e){return gh(e)&&hh(e)==yh}var vh=mh,os=vh,bh=Yi,Ic=Object.prototype,wh=Ic.hasOwnProperty,xh=Ic.propertyIsEnumerable,$h=os(function(){return arguments}())?os:function(e){return bh(e)&&wh.call(e,"callee")&&!xh.call(e,"callee")},_h=$h,Sh=Array.isArray,Ch=Sh,Eh=9007199254740991;function kh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Eh}var Dc=kh,Ah=Rc,Th=Dc;function Oh(e){return e!=null&&Th(e.length)&&!Ah(e)}var Rh=Oh,ro={exports:{}};function jh(){return!1}var Ph=jh;ro.exports;(function(e,t){var r=pr,n=Ph,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u})(ro,ro.exports);var Ih=ro.exports,Dh=wo,Mh=Dc,Lh=Yi,Nh="[object Arguments]",Fh="[object Array]",zh="[object Boolean]",Vh="[object Date]",Bh="[object Error]",Wh="[object Function]",Uh="[object Map]",Gh="[object Number]",qh="[object Object]",Hh="[object RegExp]",Yh="[object Set]",Qh="[object String]",Kh="[object WeakMap]",Jh="[object ArrayBuffer]",Xh="[object DataView]",Zh="[object Float32Array]",eg="[object Float64Array]",tg="[object Int8Array]",rg="[object Int16Array]",ng="[object Int32Array]",og="[object Uint8Array]",ig="[object Uint8ClampedArray]",ag="[object Uint16Array]",sg="[object Uint32Array]",Ie={};Ie[Zh]=Ie[eg]=Ie[tg]=Ie[rg]=Ie[ng]=Ie[og]=Ie[ig]=Ie[ag]=Ie[sg]=!0;Ie[Nh]=Ie[Fh]=Ie[Jh]=Ie[zh]=Ie[Xh]=Ie[Vh]=Ie[Bh]=Ie[Wh]=Ie[Uh]=Ie[Gh]=Ie[qh]=Ie[Hh]=Ie[Yh]=Ie[Qh]=Ie[Kh]=!1;function cg(e){return Lh(e)&&Mh(e.length)&&!!Ie[Dh(e)]}var lg=cg;function ug(e){return function(t){return e(t)}}var dg=ug,no={exports:{}};no.exports;(function(e,t){var r=Ac,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(no,no.exports);var fg=no.exports,pg=lg,hg=dg,is=fg,as=is&&is.isTypedArray,gg=as?hg(as):pg,yg=gg,mg=Ff,vg=fh,bg=_h,wg=Ch,xg=Rh,$g=Ih,_g=kc,Sg=yg,Cg="[object Map]",Eg="[object Set]",kg=Object.prototype,Ag=kg.hasOwnProperty;function Tg(e){if(e==null)return!0;if(xg(e)&&(wg(e)||typeof e=="string"||typeof e.splice=="function"||$g(e)||Sg(e)||bg(e)))return!e.length;var t=vg(e);if(t==Cg||t==Eg)return!e.size;if(_g(e))return!mg(e).length;for(var r in e)if(Ag.call(e,r))return!1;return!0}var Og=Tg;const rn=Di(Og);var Mc={exports:{}};/*!
|
|
444
467
|
Copyright (c) 2018 Jed Watson.
|
|
445
468
|
Licensed under the MIT License (MIT), see
|
|
446
469
|
http://jedwatson.github.io/classnames
|
|
447
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(
|
|
470
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Mc);var Rg=Mc.exports;const xi=Di(Rg);/*
|
|
448
471
|
* React Tooltip
|
|
449
472
|
* {@link https://github.com/ReactTooltip/react-tooltip}
|
|
450
473
|
* @copyright ReactTooltip Team
|
|
451
474
|
* @license MIT
|
|
452
|
-
*/const Rg="react-tooltip-core-styles",jg="react-tooltip-base-styles",ns={core:!1,base:!1};function os({css:e,id:t=jg,type:r="base",ref:n}){var o,i;if(!e||typeof document>"u"||ns[r]||r==="core"&&typeof process<"u"&&(!((o=process==null?void 0:process.env)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_CORE_STYLES)||r!=="base"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;r==="core"&&(t=Rg),n||(n={});const{insertAt:a}=n;if(document.getElementById(t))return;const s=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",a==="top"&&s.firstChild?s.insertBefore(c,s.firstChild):s.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),ns[r]=!0}const is=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:n="top",offset:o=10,strategy:i="absolute",middlewares:a=[bc(Number(o)),wc({fallbackAxisSideDirection:"start"}),$f({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};const c=a;return r?(c.push(_f({element:r,padding:5})),pi(e,t,{placement:n,strategy:i,middleware:c}).then(({x:u,y:f,placement:y,middlewareData:m})=>{var v,w;const _={left:`${u}px`,top:`${f}px`,border:s},{x:O,y:$}=(v=m.arrow)!==null&&v!==void 0?v:{x:0,y:0},C=(w={top:"bottom",right:"left",bottom:"top",left:"right"}[y.split("-")[0]])!==null&&w!==void 0?w:"bottom",P=s&&{borderBottom:s,borderRight:s};let I=0;if(s){const M=`${s}`.match(/(\d+)px/);I=M!=null&&M[1]?Number(M[1]):1}return{tooltipStyles:_,tooltipArrowStyles:{left:O!=null?`${O}px`:"",top:$!=null?`${$}px`:"",right:"",bottom:"",...P,[C]:`-${4+I}px`},place:y}})):pi(e,t,{placement:"bottom",strategy:i,middleware:c}).then(({x:u,y:f,placement:y})=>({tooltipStyles:{left:`${u}px`,top:`${f}px`},tooltipArrowStyles:{},place:y}))},as=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),ss=(e,t,r)=>{let n=null;const o=function(...i){const a=()=>{n=null};!n&&(e.apply(this,i),n=setTimeout(a,t))};return o.cancel=()=>{n&&(clearTimeout(n),n=null)},o},cs=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",wi=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((o,i)=>wi(o,t[i]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!cs(e)||!cs(t))return e===t;const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(o=>wi(e[o],t[o]))},Pg=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(r=>{const n=t.getPropertyValue(r);return n==="auto"||n==="scroll"})},ls=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Pg(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Dg=typeof window<"u"?g.useLayoutEffect:g.useEffect,Ft=e=>{e.current&&(clearTimeout(e.current),e.current=null)},Ig="DEFAULT_TOOLTIP_ID",Mg={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Lg=g.createContext({getTooltipData:()=>Mg});function Pc(e=Ig){return g.useContext(Lg).getTooltipData(e)}var Or={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Qo={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ng=({forwardRef:e,id:t,className:r,classNameArrow:n,variant:o="dark",anchorId:i,anchorSelect:a,place:s="top",offset:c=10,events:u=["hover"],openOnClick:f=!1,positionStrategy:y="absolute",middlewares:m,wrapper:v,delayShow:w=0,delayHide:_=0,float:O=!1,hidden:$=!1,noArrow:C=!1,clickable:P=!1,closeOnEsc:I=!1,closeOnScroll:M=!1,closeOnResize:k=!1,openEvents:T,closeEvents:V,globalCloseEvents:U,imperativeModeOnly:Y,style:pe,position:ve,afterShow:se,afterHide:N,disableTooltip:J,content:z,contentWrapperRef:te,isOpen:B,defaultIsOpen:ie=!1,setIsOpen:H,activeAnchor:ye,setActiveAnchor:$e,border:re,opacity:st,arrowColor:tt,role:qe="tooltip"})=>{var Ge;const be=g.useRef(null),Ce=g.useRef(null),Ae=g.useRef(null),Be=g.useRef(null),Ie=g.useRef(null),[gt,It]=g.useState({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[Te,yt]=g.useState(!1),[Ke,mt]=g.useState(!1),[we,vt]=g.useState(null),bt=g.useRef(!1),wt=g.useRef(null),{anchorRefs:jt,setActiveAnchor:rt}=Pc(t),ct=g.useRef(!1),[xt,Je]=g.useState([]),Et=g.useRef(!1),kt=f||u.includes("click"),Mt=kt||(T==null?void 0:T.click)||(T==null?void 0:T.dblclick)||(T==null?void 0:T.mousedown),He=T?{...T}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!T&&kt&&Object.assign(He,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Lt=V?{...V}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!V&&kt&&Object.assign(Lt,{mouseleave:!1,blur:!1,mouseout:!1});const nt=U?{...U}:{escape:I||!1,scroll:M||!1,resize:k||!1,clickOutsideAnchor:Mt||!1};Y&&(Object.assign(He,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Lt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(nt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Dg(()=>(Et.current=!0,()=>{Et.current=!1}),[]);const Ee=L=>{Et.current&&(L&&mt(!0),setTimeout(()=>{Et.current&&(H==null||H(L),B===void 0&&yt(L))},10))};g.useEffect(()=>{if(B===void 0)return()=>null;B&&mt(!0);const L=setTimeout(()=>{yt(B)},10);return()=>{clearTimeout(L)}},[B]),g.useEffect(()=>{if(Te!==bt.current)if(Ft(Ie),bt.current=Te,Te)se==null||se();else{const L=(Q=>{const X=Q.match(/^([\d.]+)(ms|s)$/);if(!X)return 0;const[,Oe,Ne]=X;return Number(Oe)*(Ne==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));Ie.current=setTimeout(()=>{mt(!1),vt(null),N==null||N()},L+25)}},[Te]);const Wt=L=>{It(Q=>wi(Q,L)?Q:L)},Ut=(L=w)=>{Ft(Ae),Ke?Ee(!0):Ae.current=setTimeout(()=>{Ee(!0)},L)},$t=(L=_)=>{Ft(Be),Be.current=setTimeout(()=>{ct.current||Ee(!1)},L)},_t=L=>{var Q;if(!L)return;const X=(Q=L.currentTarget)!==null&&Q!==void 0?Q:L.target;if(!(X!=null&&X.isConnected))return $e(null),void rt({current:null});w?Ut():Ee(!0),$e(X),rt({current:X}),Ft(Be)},Ye=()=>{P?$t(_||100):_?$t():Ee(!1),Ft(Ae)},lt=({x:L,y:Q})=>{var X;const Oe={getBoundingClientRect:()=>({x:L,y:Q,width:0,height:0,top:Q,left:L,right:L,bottom:Q})};is({place:(X=we==null?void 0:we.place)!==null&&X!==void 0?X:s,offset:c,elementReference:Oe,tooltipReference:be.current,tooltipArrowReference:Ce.current,strategy:y,middlewares:m,border:re}).then(Ne=>{Wt(Ne)})},We=L=>{if(!L)return;const Q=L,X={x:Q.clientX,y:Q.clientY};lt(X),wt.current=X},Qe=L=>{var Q;if(!Te)return;const X=L.target;X.isConnected&&(!((Q=be.current)===null||Q===void 0)&&Q.contains(X)||[document.querySelector(`[id='${i}']`),...xt].some(Oe=>Oe==null?void 0:Oe.contains(X))||(Ee(!1),Ft(Ae)))},At=ss(_t,50),ke=ss(Ye,50),Xe=L=>{ke.cancel(),At(L)},q=()=>{At.cancel(),ke()},ue=g.useCallback(()=>{var L,Q;const X=(L=we==null?void 0:we.position)!==null&&L!==void 0?L:ve;X?lt(X):O?wt.current&<(wt.current):ye!=null&&ye.isConnected&&is({place:(Q=we==null?void 0:we.place)!==null&&Q!==void 0?Q:s,offset:c,elementReference:ye,tooltipReference:be.current,tooltipArrowReference:Ce.current,strategy:y,middlewares:m,border:re}).then(Oe=>{Et.current&&Wt(Oe)})},[Te,ye,z,pe,s,we==null?void 0:we.place,c,y,ve,we==null?void 0:we.position,O]);g.useEffect(()=>{var L,Q;const X=new Set(jt);xt.forEach(K=>{J!=null&&J(K)||X.add({current:K})});const Oe=document.querySelector(`[id='${i}']`);Oe&&!(J!=null&&J(Oe))&&X.add({current:Oe});const Ne=()=>{Ee(!1)},ut=ls(ye),Re=ls(be.current);nt.scroll&&(window.addEventListener("scroll",Ne),ut==null||ut.addEventListener("scroll",Ne),Re==null||Re.addEventListener("scroll",Ne));let p=null;nt.resize?window.addEventListener("resize",Ne):ye&&be.current&&(p=vc(ye,be.current,ue,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const E=K=>{K.key==="Escape"&&Ee(!1)};nt.escape&&window.addEventListener("keydown",E),nt.clickOutsideAnchor&&window.addEventListener("click",Qe);const D=[],G=K=>{Te&&(K==null?void 0:K.target)===ye||_t(K)},ge=K=>{Te&&(K==null?void 0:K.target)===ye&&Ye()},fe=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],ce=["click","dblclick","mousedown","mouseup"];Object.entries(He).forEach(([K,me])=>{me&&(fe.includes(K)?D.push({event:K,listener:Xe}):ce.includes(K)&&D.push({event:K,listener:G}))}),Object.entries(Lt).forEach(([K,me])=>{me&&(fe.includes(K)?D.push({event:K,listener:q}):ce.includes(K)&&D.push({event:K,listener:ge}))}),O&&D.push({event:"pointermove",listener:We});const ae=()=>{ct.current=!0},Fe=()=>{ct.current=!1,Ye()};return P&&!Mt&&((L=be.current)===null||L===void 0||L.addEventListener("mouseenter",ae),(Q=be.current)===null||Q===void 0||Q.addEventListener("mouseleave",Fe)),D.forEach(({event:K,listener:me})=>{X.forEach(je=>{var Ze;(Ze=je.current)===null||Ze===void 0||Ze.addEventListener(K,me)})}),()=>{var K,me;nt.scroll&&(window.removeEventListener("scroll",Ne),ut==null||ut.removeEventListener("scroll",Ne),Re==null||Re.removeEventListener("scroll",Ne)),nt.resize?window.removeEventListener("resize",Ne):p==null||p(),nt.clickOutsideAnchor&&window.removeEventListener("click",Qe),nt.escape&&window.removeEventListener("keydown",E),P&&!Mt&&((K=be.current)===null||K===void 0||K.removeEventListener("mouseenter",ae),(me=be.current)===null||me===void 0||me.removeEventListener("mouseleave",Fe)),D.forEach(({event:je,listener:Ze})=>{X.forEach(er=>{var ot;(ot=er.current)===null||ot===void 0||ot.removeEventListener(je,Ze)})})}},[ye,ue,Ke,jt,xt,T,V,U,kt,w,_]),g.useEffect(()=>{var L,Q;let X=(Q=(L=we==null?void 0:we.anchorSelect)!==null&&L!==void 0?L:a)!==null&&Q!==void 0?Q:"";!X&&t&&(X=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Oe=new MutationObserver(Ne=>{const ut=[],Re=[];Ne.forEach(p=>{if(p.type==="attributes"&&p.attributeName==="data-tooltip-id"&&(p.target.getAttribute("data-tooltip-id")===t?ut.push(p.target):p.oldValue===t&&Re.push(p.target)),p.type==="childList"){if(ye){const E=[...p.removedNodes].filter(D=>D.nodeType===1);if(X)try{Re.push(...E.filter(D=>D.matches(X))),Re.push(...E.flatMap(D=>[...D.querySelectorAll(X)]))}catch{}E.some(D=>{var G;return!!(!((G=D==null?void 0:D.contains)===null||G===void 0)&&G.call(D,ye))&&(mt(!1),Ee(!1),$e(null),Ft(Ae),Ft(Be),!0)})}if(X)try{const E=[...p.addedNodes].filter(D=>D.nodeType===1);ut.push(...E.filter(D=>D.matches(X))),ut.push(...E.flatMap(D=>[...D.querySelectorAll(X)]))}catch{}}}),(ut.length||Re.length)&&Je(p=>[...p.filter(E=>!Re.includes(E)),...ut])});return Oe.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Oe.disconnect()}},[t,a,we==null?void 0:we.anchorSelect,ye]),g.useEffect(()=>{ue()},[ue]),g.useEffect(()=>{if(!(te!=null&&te.current))return()=>null;const L=new ResizeObserver(()=>{setTimeout(()=>ue())});return L.observe(te.current),()=>{L.disconnect()}},[z,te==null?void 0:te.current]),g.useEffect(()=>{var L;const Q=document.querySelector(`[id='${i}']`),X=[...xt,Q];ye&&X.includes(ye)||$e((L=xt[0])!==null&&L!==void 0?L:Q)},[i,xt,ye]),g.useEffect(()=>(ie&&Ee(!0),()=>{Ft(Ae),Ft(Be)}),[]),g.useEffect(()=>{var L;let Q=(L=we==null?void 0:we.anchorSelect)!==null&&L!==void 0?L:a;if(!Q&&t&&(Q=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),Q)try{const X=Array.from(document.querySelectorAll(Q));Je(X)}catch{Je([])}},[t,a,we==null?void 0:we.anchorSelect]),g.useEffect(()=>{Ae.current&&(Ft(Ae),Ut(w))},[w]);const Me=(Ge=we==null?void 0:we.content)!==null&&Ge!==void 0?Ge:z,St=Te&&Object.keys(gt.tooltipStyles).length>0;return g.useImperativeHandle(e,()=>({open:L=>{if(L!=null&&L.anchorSelect)try{document.querySelector(L.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${L.anchorSelect}" is not a valid CSS selector`)}vt(L??null),L!=null&&L.delay?Ut(L.delay):Ee(!0)},close:L=>{L!=null&&L.delay?$t(L.delay):Ee(!1)},activeAnchor:ye,place:gt.place,isOpen:!!(Ke&&!$&&Me&&St)})),Ke&&!$&&Me?g.createElement(v,{id:t,role:qe,className:bi("react-tooltip",Or.tooltip,Qo.tooltip,Qo[o],r,`react-tooltip__place-${gt.place}`,Or[St?"show":"closing"],St?"react-tooltip__show":"react-tooltip__closing",y==="fixed"&&Or.fixed,P&&Or.clickable),onTransitionEnd:L=>{Ft(Ie),Te||L.propertyName!=="opacity"||(mt(!1),vt(null),N==null||N())},style:{...pe,...gt.tooltipStyles,opacity:st!==void 0&&St?st:void 0},ref:be},Me,g.createElement(v,{className:bi("react-tooltip-arrow",Or.arrow,Qo.arrow,n,C&&Or.noArrow),style:{...gt.tooltipArrowStyles,background:tt?`linear-gradient(to right bottom, transparent 50%, ${tt} 50%)`:void 0},ref:Ce})):null},Fg=({content:e})=>g.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Vg=g.forwardRef(({id:e,anchorId:t,anchorSelect:r,content:n,html:o,render:i,className:a,classNameArrow:s,variant:c="dark",place:u="top",offset:f=10,wrapper:y="div",children:m=null,events:v=["hover"],openOnClick:w=!1,positionStrategy:_="absolute",middlewares:O,delayShow:$=0,delayHide:C=0,float:P=!1,hidden:I=!1,noArrow:M=!1,clickable:k=!1,closeOnEsc:T=!1,closeOnScroll:V=!1,closeOnResize:U=!1,openEvents:Y,closeEvents:pe,globalCloseEvents:ve,imperativeModeOnly:se=!1,style:N,position:J,isOpen:z,defaultIsOpen:te=!1,disableStyleInjection:B=!1,border:ie,opacity:H,arrowColor:ye,setIsOpen:$e,afterShow:re,afterHide:st,disableTooltip:tt,role:qe="tooltip"},Ge)=>{const[be,Ce]=g.useState(n),[Ae,Be]=g.useState(o),[Ie,gt]=g.useState(u),[It,Te]=g.useState(c),[yt,Ke]=g.useState(f),[mt,we]=g.useState($),[vt,bt]=g.useState(C),[wt,jt]=g.useState(P),[rt,ct]=g.useState(I),[xt,Je]=g.useState(y),[Et,kt]=g.useState(v),[Mt,He]=g.useState(_),[Lt,nt]=g.useState(null),[Ee,Wt]=g.useState(null),Ut=g.useRef(B),{anchorRefs:$t,activeAnchor:_t}=Pc(e),Ye=ke=>ke==null?void 0:ke.getAttributeNames().reduce((Xe,q)=>{var ue;return q.startsWith("data-tooltip-")&&(Xe[q.replace(/^data-tooltip-/,"")]=(ue=ke==null?void 0:ke.getAttribute(q))!==null&&ue!==void 0?ue:null),Xe},{}),lt=ke=>{const Xe={place:q=>{var ue;gt((ue=q)!==null&&ue!==void 0?ue:u)},content:q=>{Ce(q??n)},html:q=>{Be(q??o)},variant:q=>{var ue;Te((ue=q)!==null&&ue!==void 0?ue:c)},offset:q=>{Ke(q===null?f:Number(q))},wrapper:q=>{var ue;Je((ue=q)!==null&&ue!==void 0?ue:y)},events:q=>{const ue=q==null?void 0:q.split(" ");kt(ue??v)},"position-strategy":q=>{var ue;He((ue=q)!==null&&ue!==void 0?ue:_)},"delay-show":q=>{we(q===null?$:Number(q))},"delay-hide":q=>{bt(q===null?C:Number(q))},float:q=>{jt(q===null?P:q==="true")},hidden:q=>{ct(q===null?I:q==="true")},"class-name":q=>{nt(q)}};Object.values(Xe).forEach(q=>q(null)),Object.entries(ke).forEach(([q,ue])=>{var Me;(Me=Xe[q])===null||Me===void 0||Me.call(Xe,ue)})};g.useEffect(()=>{Ce(n)},[n]),g.useEffect(()=>{Be(o)},[o]),g.useEffect(()=>{gt(u)},[u]),g.useEffect(()=>{Te(c)},[c]),g.useEffect(()=>{Ke(f)},[f]),g.useEffect(()=>{we($)},[$]),g.useEffect(()=>{bt(C)},[C]),g.useEffect(()=>{jt(P)},[P]),g.useEffect(()=>{ct(I)},[I]),g.useEffect(()=>{He(_)},[_]),g.useEffect(()=>{Ut.current!==B&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[B]),g.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:B==="core",disableBase:B}}))},[]),g.useEffect(()=>{var ke;const Xe=new Set($t);let q=r;if(!q&&e&&(q=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),q)try{document.querySelectorAll(q).forEach(Q=>{Xe.add({current:Q})})}catch{console.warn(`[react-tooltip] "${q}" is not a valid CSS selector`)}const ue=document.querySelector(`[id='${t}']`);if(ue&&Xe.add({current:ue}),!Xe.size)return()=>null;const Me=(ke=Ee??ue)!==null&&ke!==void 0?ke:_t.current,St=new MutationObserver(Q=>{Q.forEach(X=>{var Oe;if(!Me||X.type!=="attributes"||!(!((Oe=X.attributeName)===null||Oe===void 0)&&Oe.startsWith("data-tooltip-")))return;const Ne=Ye(Me);lt(Ne)})}),L={attributes:!0,childList:!1,subtree:!1};if(Me){const Q=Ye(Me);lt(Q),St.observe(Me,L)}return()=>{St.disconnect()}},[$t,_t,Ee,t,r]),g.useEffect(()=>{N!=null&&N.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),ie&&!as("border",`${ie}`)&&console.warn(`[react-tooltip] "${ie}" is not a valid \`border\`.`),N!=null&&N.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),H&&!as("opacity",`${H}`)&&console.warn(`[react-tooltip] "${H}" is not a valid \`opacity\`.`)},[]);let We=m;const Qe=g.useRef(null);if(i){const ke=i({content:(Ee==null?void 0:Ee.getAttribute("data-tooltip-content"))||be||null,activeAnchor:Ee});We=ke?g.createElement("div",{ref:Qe,className:"react-tooltip-content-wrapper"},ke):null}else be&&(We=be);Ae&&(We=g.createElement(Fg,{content:Ae}));const At={forwardRef:Ge,id:e,anchorId:t,anchorSelect:r,className:bi(a,Lt),classNameArrow:s,content:We,contentWrapperRef:Qe,place:Ie,variant:It,offset:yt,wrapper:xt,events:Et,openOnClick:w,positionStrategy:Mt,middlewares:O,delayShow:mt,delayHide:vt,float:wt,hidden:rt,noArrow:M,clickable:k,closeOnEsc:T,closeOnScroll:V,closeOnResize:U,openEvents:Y,closeEvents:pe,globalCloseEvents:ve,imperativeModeOnly:se,style:N,position:J,isOpen:z,defaultIsOpen:te,border:ie,opacity:H,arrowColor:ye,setIsOpen:$e,afterShow:re,afterHide:st,disableTooltip:tt,activeAnchor:Ee,setActiveAnchor:ke=>Wt(ke),role:qe};return g.createElement(Ng,{...At})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||os({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||os({css:`
|
|
453
|
-
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const
|
|
475
|
+
*/const jg="react-tooltip-core-styles",Pg="react-tooltip-base-styles",ss={core:!1,base:!1};function cs({css:e,id:t=Pg,type:r="base",ref:n}){var o,i;if(!e||typeof document>"u"||ss[r]||r==="core"&&typeof process<"u"&&(!((o=process==null?void 0:process.env)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_CORE_STYLES)||r!=="base"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;r==="core"&&(t=jg),n||(n={});const{insertAt:a}=n;if(document.getElementById(t))return;const s=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",a==="top"&&s.firstChild?s.insertBefore(c,s.firstChild):s.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),ss[r]=!0}const ls=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:n="top",offset:o=10,strategy:i="absolute",middlewares:a=[Sc(Number(o)),Cc({fallbackAxisSideDirection:"start"}),$f({padding:5})],border:s})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};const c=a;return r?(c.push(_f({element:r,padding:5})),gi(e,t,{placement:n,strategy:i,middleware:c}).then(({x:u,y:f,placement:y,middlewareData:h})=>{var g,x;const S={left:`${u}px`,top:`${f}px`,border:s},{x:k,y:_}=(g=h.arrow)!==null&&g!==void 0?g:{x:0,y:0},C=(x={top:"bottom",right:"left",bottom:"top",left:"right"}[y.split("-")[0]])!==null&&x!==void 0?x:"bottom",P=s&&{borderBottom:s,borderRight:s};let M=0;if(s){const D=`${s}`.match(/(\d+)px/);M=D!=null&&D[1]?Number(D[1]):1}return{tooltipStyles:S,tooltipArrowStyles:{left:k!=null?`${k}px`:"",top:_!=null?`${_}px`:"",right:"",bottom:"",...P,[C]:`-${4+M}px`},place:y}})):gi(e,t,{placement:"bottom",strategy:i,middleware:c}).then(({x:u,y:f,placement:y})=>({tooltipStyles:{left:`${u}px`,top:`${f}px`},tooltipArrowStyles:{},place:y}))},us=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),ds=(e,t,r)=>{let n=null;const o=function(...i){const a=()=>{n=null};!n&&(e.apply(this,i),n=setTimeout(a,t))};return o.cancel=()=>{n&&(clearTimeout(n),n=null)},o},fs=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",$i=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((o,i)=>$i(o,t[i]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!fs(e)||!fs(t))return e===t;const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(o=>$i(e[o],t[o]))},Ig=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(r=>{const n=t.getPropertyValue(r);return n==="auto"||n==="scroll"})},ps=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Ig(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Dg=typeof window<"u"?v.useLayoutEffect:v.useEffect,Ft=e=>{e.current&&(clearTimeout(e.current),e.current=null)},Mg="DEFAULT_TOOLTIP_ID",Lg={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Ng=v.createContext({getTooltipData:()=>Lg});function Lc(e=Mg){return v.useContext(Ng).getTooltipData(e)}var Or={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Jo={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Fg=({forwardRef:e,id:t,className:r,classNameArrow:n,variant:o="dark",anchorId:i,anchorSelect:a,place:s="top",offset:c=10,events:u=["hover"],openOnClick:f=!1,positionStrategy:y="absolute",middlewares:h,wrapper:g,delayShow:x=0,delayHide:S=0,float:k=!1,hidden:_=!1,noArrow:C=!1,clickable:P=!1,closeOnEsc:M=!1,closeOnScroll:D=!1,closeOnResize:A=!1,openEvents:j,closeEvents:z,globalCloseEvents:H,imperativeModeOnly:V,style:ie,position:he,afterShow:ae,afterHide:N,disableTooltip:J,content:B,contentWrapperRef:re,isOpen:W,defaultIsOpen:se=!1,setIsOpen:Y,activeAnchor:me,setActiveAnchor:$e,border:ne,opacity:lt,arrowColor:ot,role:qe="tooltip"})=>{var He;const be=v.useRef(null),Ce=v.useRef(null),Ae=v.useRef(null),We=v.useRef(null),De=v.useRef(null),[yt,Dt]=v.useState({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[Te,mt]=v.useState(!1),[Xe,vt]=v.useState(!1),[we,bt]=v.useState(null),wt=v.useRef(!1),xt=v.useRef(null),{anchorRefs:Pt,setActiveAnchor:it}=Lc(t),ut=v.useRef(!1),[$t,Ze]=v.useState([]),kt=v.useRef(!1),At=f||u.includes("click"),Mt=At||(j==null?void 0:j.click)||(j==null?void 0:j.dblclick)||(j==null?void 0:j.mousedown),Ye=j?{...j}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!j&&At&&Object.assign(Ye,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Lt=z?{...z}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!z&&At&&Object.assign(Lt,{mouseleave:!1,blur:!1,mouseout:!1});const at=H?{...H}:{escape:M||!1,scroll:D||!1,resize:A||!1,clickOutsideAnchor:Mt||!1};V&&(Object.assign(Ye,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Lt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(at,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Dg(()=>(kt.current=!0,()=>{kt.current=!1}),[]);const Ee=L=>{kt.current&&(L&&vt(!0),setTimeout(()=>{kt.current&&(Y==null||Y(L),W===void 0&&mt(L))},10))};v.useEffect(()=>{if(W===void 0)return()=>null;W&&vt(!0);const L=setTimeout(()=>{mt(W)},10);return()=>{clearTimeout(L)}},[W]),v.useEffect(()=>{if(Te!==wt.current)if(Ft(De),wt.current=Te,Te)ae==null||ae();else{const L=(Q=>{const Z=Q.match(/^([\d.]+)(ms|s)$/);if(!Z)return 0;const[,Oe,Ne]=Z;return Number(Oe)*(Ne==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));De.current=setTimeout(()=>{vt(!1),bt(null),N==null||N()},L+25)}},[Te]);const Ut=L=>{Dt(Q=>$i(Q,L)?Q:L)},Gt=(L=x)=>{Ft(Ae),Xe?Ee(!0):Ae.current=setTimeout(()=>{Ee(!0)},L)},_t=(L=S)=>{Ft(We),We.current=setTimeout(()=>{ut.current||Ee(!1)},L)},St=L=>{var Q;if(!L)return;const Z=(Q=L.currentTarget)!==null&&Q!==void 0?Q:L.target;if(!(Z!=null&&Z.isConnected))return $e(null),void it({current:null});x?Gt():Ee(!0),$e(Z),it({current:Z}),Ft(We)},Qe=()=>{P?_t(S||100):S?_t():Ee(!1),Ft(Ae)},dt=({x:L,y:Q})=>{var Z;const Oe={getBoundingClientRect:()=>({x:L,y:Q,width:0,height:0,top:Q,left:L,right:L,bottom:Q})};ls({place:(Z=we==null?void 0:we.place)!==null&&Z!==void 0?Z:s,offset:c,elementReference:Oe,tooltipReference:be.current,tooltipArrowReference:Ce.current,strategy:y,middlewares:h,border:ne}).then(Ne=>{Ut(Ne)})},Ue=L=>{if(!L)return;const Q=L,Z={x:Q.clientX,y:Q.clientY};dt(Z),xt.current=Z},Ke=L=>{var Q;if(!Te)return;const Z=L.target;Z.isConnected&&(!((Q=be.current)===null||Q===void 0)&&Q.contains(Z)||[document.querySelector(`[id='${i}']`),...$t].some(Oe=>Oe==null?void 0:Oe.contains(Z))||(Ee(!1),Ft(Ae)))},Tt=ds(St,50),ke=ds(Qe,50),et=L=>{ke.cancel(),Tt(L)},G=()=>{Tt.cancel(),ke()},de=v.useCallback(()=>{var L,Q;const Z=(L=we==null?void 0:we.position)!==null&&L!==void 0?L:he;Z?dt(Z):k?xt.current&&dt(xt.current):me!=null&&me.isConnected&&ls({place:(Q=we==null?void 0:we.place)!==null&&Q!==void 0?Q:s,offset:c,elementReference:me,tooltipReference:be.current,tooltipArrowReference:Ce.current,strategy:y,middlewares:h,border:ne}).then(Oe=>{kt.current&&Ut(Oe)})},[Te,me,B,ie,s,we==null?void 0:we.place,c,y,he,we==null?void 0:we.position,k]);v.useEffect(()=>{var L,Q;const Z=new Set(Pt);$t.forEach(K=>{J!=null&&J(K)||Z.add({current:K})});const Oe=document.querySelector(`[id='${i}']`);Oe&&!(J!=null&&J(Oe))&&Z.add({current:Oe});const Ne=()=>{Ee(!1)},ft=ps(me),Re=ps(be.current);at.scroll&&(window.addEventListener("scroll",Ne),ft==null||ft.addEventListener("scroll",Ne),Re==null||Re.addEventListener("scroll",Ne));let p=null;at.resize?window.addEventListener("resize",Ne):me&&be.current&&(p=_c(me,be.current,de,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const E=K=>{K.key==="Escape"&&Ee(!1)};at.escape&&window.addEventListener("keydown",E),at.clickOutsideAnchor&&window.addEventListener("click",Ke);const I=[],q=K=>{Te&&(K==null?void 0:K.target)===me||St(K)},ye=K=>{Te&&(K==null?void 0:K.target)===me&&Qe()},pe=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],le=["click","dblclick","mousedown","mouseup"];Object.entries(Ye).forEach(([K,ve])=>{ve&&(pe.includes(K)?I.push({event:K,listener:et}):le.includes(K)&&I.push({event:K,listener:q}))}),Object.entries(Lt).forEach(([K,ve])=>{ve&&(pe.includes(K)?I.push({event:K,listener:G}):le.includes(K)&&I.push({event:K,listener:ye}))}),k&&I.push({event:"pointermove",listener:Ue});const ce=()=>{ut.current=!0},Fe=()=>{ut.current=!1,Qe()};return P&&!Mt&&((L=be.current)===null||L===void 0||L.addEventListener("mouseenter",ce),(Q=be.current)===null||Q===void 0||Q.addEventListener("mouseleave",Fe)),I.forEach(({event:K,listener:ve})=>{Z.forEach(je=>{var tt;(tt=je.current)===null||tt===void 0||tt.addEventListener(K,ve)})}),()=>{var K,ve;at.scroll&&(window.removeEventListener("scroll",Ne),ft==null||ft.removeEventListener("scroll",Ne),Re==null||Re.removeEventListener("scroll",Ne)),at.resize?window.removeEventListener("resize",Ne):p==null||p(),at.clickOutsideAnchor&&window.removeEventListener("click",Ke),at.escape&&window.removeEventListener("keydown",E),P&&!Mt&&((K=be.current)===null||K===void 0||K.removeEventListener("mouseenter",ce),(ve=be.current)===null||ve===void 0||ve.removeEventListener("mouseleave",Fe)),I.forEach(({event:je,listener:tt})=>{Z.forEach(er=>{var st;(st=er.current)===null||st===void 0||st.removeEventListener(je,tt)})})}},[me,de,Xe,Pt,$t,j,z,H,At,x,S]),v.useEffect(()=>{var L,Q;let Z=(Q=(L=we==null?void 0:we.anchorSelect)!==null&&L!==void 0?L:a)!==null&&Q!==void 0?Q:"";!Z&&t&&(Z=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Oe=new MutationObserver(Ne=>{const ft=[],Re=[];Ne.forEach(p=>{if(p.type==="attributes"&&p.attributeName==="data-tooltip-id"&&(p.target.getAttribute("data-tooltip-id")===t?ft.push(p.target):p.oldValue===t&&Re.push(p.target)),p.type==="childList"){if(me){const E=[...p.removedNodes].filter(I=>I.nodeType===1);if(Z)try{Re.push(...E.filter(I=>I.matches(Z))),Re.push(...E.flatMap(I=>[...I.querySelectorAll(Z)]))}catch{}E.some(I=>{var q;return!!(!((q=I==null?void 0:I.contains)===null||q===void 0)&&q.call(I,me))&&(vt(!1),Ee(!1),$e(null),Ft(Ae),Ft(We),!0)})}if(Z)try{const E=[...p.addedNodes].filter(I=>I.nodeType===1);ft.push(...E.filter(I=>I.matches(Z))),ft.push(...E.flatMap(I=>[...I.querySelectorAll(Z)]))}catch{}}}),(ft.length||Re.length)&&Ze(p=>[...p.filter(E=>!Re.includes(E)),...ft])});return Oe.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Oe.disconnect()}},[t,a,we==null?void 0:we.anchorSelect,me]),v.useEffect(()=>{de()},[de]),v.useEffect(()=>{if(!(re!=null&&re.current))return()=>null;const L=new ResizeObserver(()=>{setTimeout(()=>de())});return L.observe(re.current),()=>{L.disconnect()}},[B,re==null?void 0:re.current]),v.useEffect(()=>{var L;const Q=document.querySelector(`[id='${i}']`),Z=[...$t,Q];me&&Z.includes(me)||$e((L=$t[0])!==null&&L!==void 0?L:Q)},[i,$t,me]),v.useEffect(()=>(se&&Ee(!0),()=>{Ft(Ae),Ft(We)}),[]),v.useEffect(()=>{var L;let Q=(L=we==null?void 0:we.anchorSelect)!==null&&L!==void 0?L:a;if(!Q&&t&&(Q=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),Q)try{const Z=Array.from(document.querySelectorAll(Q));Ze(Z)}catch{Ze([])}},[t,a,we==null?void 0:we.anchorSelect]),v.useEffect(()=>{Ae.current&&(Ft(Ae),Gt(x))},[x]);const Me=(He=we==null?void 0:we.content)!==null&&He!==void 0?He:B,Ct=Te&&Object.keys(yt.tooltipStyles).length>0;return v.useImperativeHandle(e,()=>({open:L=>{if(L!=null&&L.anchorSelect)try{document.querySelector(L.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${L.anchorSelect}" is not a valid CSS selector`)}bt(L??null),L!=null&&L.delay?Gt(L.delay):Ee(!0)},close:L=>{L!=null&&L.delay?_t(L.delay):Ee(!1)},activeAnchor:me,place:yt.place,isOpen:!!(Xe&&!_&&Me&&Ct)})),Xe&&!_&&Me?v.createElement(g,{id:t,role:qe,className:xi("react-tooltip",Or.tooltip,Jo.tooltip,Jo[o],r,`react-tooltip__place-${yt.place}`,Or[Ct?"show":"closing"],Ct?"react-tooltip__show":"react-tooltip__closing",y==="fixed"&&Or.fixed,P&&Or.clickable),onTransitionEnd:L=>{Ft(De),Te||L.propertyName!=="opacity"||(vt(!1),bt(null),N==null||N())},style:{...ie,...yt.tooltipStyles,opacity:lt!==void 0&&Ct?lt:void 0},ref:be},Me,v.createElement(g,{className:xi("react-tooltip-arrow",Or.arrow,Jo.arrow,n,C&&Or.noArrow),style:{...yt.tooltipArrowStyles,background:ot?`linear-gradient(to right bottom, transparent 50%, ${ot} 50%)`:void 0},ref:Ce})):null},zg=({content:e})=>v.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Vg=v.forwardRef(({id:e,anchorId:t,anchorSelect:r,content:n,html:o,render:i,className:a,classNameArrow:s,variant:c="dark",place:u="top",offset:f=10,wrapper:y="div",children:h=null,events:g=["hover"],openOnClick:x=!1,positionStrategy:S="absolute",middlewares:k,delayShow:_=0,delayHide:C=0,float:P=!1,hidden:M=!1,noArrow:D=!1,clickable:A=!1,closeOnEsc:j=!1,closeOnScroll:z=!1,closeOnResize:H=!1,openEvents:V,closeEvents:ie,globalCloseEvents:he,imperativeModeOnly:ae=!1,style:N,position:J,isOpen:B,defaultIsOpen:re=!1,disableStyleInjection:W=!1,border:se,opacity:Y,arrowColor:me,setIsOpen:$e,afterShow:ne,afterHide:lt,disableTooltip:ot,role:qe="tooltip"},He)=>{const[be,Ce]=v.useState(n),[Ae,We]=v.useState(o),[De,yt]=v.useState(u),[Dt,Te]=v.useState(c),[mt,Xe]=v.useState(f),[vt,we]=v.useState(_),[bt,wt]=v.useState(C),[xt,Pt]=v.useState(P),[it,ut]=v.useState(M),[$t,Ze]=v.useState(y),[kt,At]=v.useState(g),[Mt,Ye]=v.useState(S),[Lt,at]=v.useState(null),[Ee,Ut]=v.useState(null),Gt=v.useRef(W),{anchorRefs:_t,activeAnchor:St}=Lc(e),Qe=ke=>ke==null?void 0:ke.getAttributeNames().reduce((et,G)=>{var de;return G.startsWith("data-tooltip-")&&(et[G.replace(/^data-tooltip-/,"")]=(de=ke==null?void 0:ke.getAttribute(G))!==null&&de!==void 0?de:null),et},{}),dt=ke=>{const et={place:G=>{var de;yt((de=G)!==null&&de!==void 0?de:u)},content:G=>{Ce(G??n)},html:G=>{We(G??o)},variant:G=>{var de;Te((de=G)!==null&&de!==void 0?de:c)},offset:G=>{Xe(G===null?f:Number(G))},wrapper:G=>{var de;Ze((de=G)!==null&&de!==void 0?de:y)},events:G=>{const de=G==null?void 0:G.split(" ");At(de??g)},"position-strategy":G=>{var de;Ye((de=G)!==null&&de!==void 0?de:S)},"delay-show":G=>{we(G===null?_:Number(G))},"delay-hide":G=>{wt(G===null?C:Number(G))},float:G=>{Pt(G===null?P:G==="true")},hidden:G=>{ut(G===null?M:G==="true")},"class-name":G=>{at(G)}};Object.values(et).forEach(G=>G(null)),Object.entries(ke).forEach(([G,de])=>{var Me;(Me=et[G])===null||Me===void 0||Me.call(et,de)})};v.useEffect(()=>{Ce(n)},[n]),v.useEffect(()=>{We(o)},[o]),v.useEffect(()=>{yt(u)},[u]),v.useEffect(()=>{Te(c)},[c]),v.useEffect(()=>{Xe(f)},[f]),v.useEffect(()=>{we(_)},[_]),v.useEffect(()=>{wt(C)},[C]),v.useEffect(()=>{Pt(P)},[P]),v.useEffect(()=>{ut(M)},[M]),v.useEffect(()=>{Ye(S)},[S]),v.useEffect(()=>{Gt.current!==W&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[W]),v.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:W==="core",disableBase:W}}))},[]),v.useEffect(()=>{var ke;const et=new Set(_t);let G=r;if(!G&&e&&(G=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),G)try{document.querySelectorAll(G).forEach(Q=>{et.add({current:Q})})}catch{console.warn(`[react-tooltip] "${G}" is not a valid CSS selector`)}const de=document.querySelector(`[id='${t}']`);if(de&&et.add({current:de}),!et.size)return()=>null;const Me=(ke=Ee??de)!==null&&ke!==void 0?ke:St.current,Ct=new MutationObserver(Q=>{Q.forEach(Z=>{var Oe;if(!Me||Z.type!=="attributes"||!(!((Oe=Z.attributeName)===null||Oe===void 0)&&Oe.startsWith("data-tooltip-")))return;const Ne=Qe(Me);dt(Ne)})}),L={attributes:!0,childList:!1,subtree:!1};if(Me){const Q=Qe(Me);dt(Q),Ct.observe(Me,L)}return()=>{Ct.disconnect()}},[_t,St,Ee,t,r]),v.useEffect(()=>{N!=null&&N.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),se&&!us("border",`${se}`)&&console.warn(`[react-tooltip] "${se}" is not a valid \`border\`.`),N!=null&&N.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),Y&&!us("opacity",`${Y}`)&&console.warn(`[react-tooltip] "${Y}" is not a valid \`opacity\`.`)},[]);let Ue=h;const Ke=v.useRef(null);if(i){const ke=i({content:(Ee==null?void 0:Ee.getAttribute("data-tooltip-content"))||be||null,activeAnchor:Ee});Ue=ke?v.createElement("div",{ref:Ke,className:"react-tooltip-content-wrapper"},ke):null}else be&&(Ue=be);Ae&&(Ue=v.createElement(zg,{content:Ae}));const Tt={forwardRef:He,id:e,anchorId:t,anchorSelect:r,className:xi(a,Lt),classNameArrow:s,content:Ue,contentWrapperRef:Ke,place:De,variant:Dt,offset:mt,wrapper:$t,events:kt,openOnClick:x,positionStrategy:Mt,middlewares:k,delayShow:vt,delayHide:bt,float:xt,hidden:it,noArrow:D,clickable:A,closeOnEsc:j,closeOnScroll:z,closeOnResize:H,openEvents:V,closeEvents:ie,globalCloseEvents:he,imperativeModeOnly:ae,style:N,position:J,isOpen:B,defaultIsOpen:re,border:se,opacity:Y,arrowColor:me,setIsOpen:$e,afterShow:ne,afterHide:lt,disableTooltip:ot,activeAnchor:Ee,setActiveAnchor:ke=>Ut(ke),role:qe};return v.createElement(Fg,{...Tt})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||cs({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||cs({css:`
|
|
476
|
+
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const Bg=X(yn)``,Wg=X.div`
|
|
454
477
|
${({theme:e,$maxWidth:t="320px"})=>`
|
|
455
478
|
> :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {
|
|
456
479
|
background-color: ${e.palette.gray[700]};
|
|
@@ -463,19 +486,19 @@ Check the top-level render call using <`+D+">.")}return E}}function Me(p,E){{if(
|
|
|
463
486
|
--rt-opacity: 1;
|
|
464
487
|
}
|
|
465
488
|
`}
|
|
466
|
-
|
|
489
|
+
`,$n=v.forwardRef(function({children:t,disabled:r=!1,display:n="inline-block",effect:o="solid",icon:i,iconColor:a,iconSize:s,id:c,maxWidth:u,nodeTip:f,place:y="bottom",tip:h="",title:g="",hide:x=h===""&&g===""&&f===void 0,...S},k){const[_,C]=v.useState(!1),P=v.useRef(null),M=v.useCallback(()=>{P.current!==null&&clearTimeout(P.current),P.current=setTimeout(()=>{C(!0)},100)},[]),D=v.useCallback(()=>{P.current!==null&&clearTimeout(P.current),P.current=setTimeout(()=>{C(!1)},100)},[]);return r?b.jsx(v.StrictMode,{children:t}):b.jsxs(Bg,{"data-tooltip-id":c,display:n,onMouseLeave:D,onMouseMove:M,ref:k,...S,children:[i?b.jsx(nt,{clickable:!0,disabled:r,icon:i,iconColor:a,iconSize:s??"xxs",iconType:_?"fa-solid":"fa-light"}):t,Ii.createPortal(b.jsx(Wg,{$maxWidth:u,children:b.jsxs(Vg,{delayShow:500,float:o==="float"?!0:void 0,globalCloseEvents:{resize:!0},hidden:x||!_,id:c,middlewares:[Ef({fallbackAxisSideDirection:"start"}),Cf({mainAxis:10})],noArrow:o==="float",place:y,children:[rn(g)?void 0:b.jsx(ze,{color:T.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:g}),rn(h)?void 0:b.jsx(ze,{color:T.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:h}),rn(f)?void 0:f]})}),document.getElementById("root")??document.body)]})}),Ug=(e,t=!0)=>{const r=window.open(e,t?void 0:"_self","noopener,noreferrer,");ap(r)&&(r.opener=null)},xo=v.forwardRef(function({bold:t=!1,children:r,disabled:n=!1,href:o,id:i,icon:a,mode:s,name:c,onClick:u,showArrow:f=!1,type:y="button",tooltip:h,tooltipPlace:g="bottom",underline:x=!1,value:S,variant:k="primaryWeb",..._},C){const P=h!==void 0,M=`${i}-tooltip`,D=!k.endsWith("Web")&&k!=="link",A=v.useCallback(()=>{o&&Ug(o)},[o]);return b.jsx($n,{disabled:!P,id:M,place:g,tip:h,children:b.jsxs(pc,{$variant:k,className:s,disabled:n,id:i,name:c,onClick:k==="link"?A:u,ref:C,type:y,value:S,...P?{"data-tooltip-id":M}:{},..._,children:[a!==void 0&&b.jsx(nt,{icon:a,iconSize:"xs",iconType:"fa-light"}),b.jsx(ze,{color:"inherit",fontWeight:t?"bold":"regular",lineSpacing:D?1.25:1.5,size:D?"sm":"md",sizeSm:"sm",textDecoration:x?"underline":void 0,children:r}),(f||k==="link")&&b.jsx(nt,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"})]})})}),hs={web:{normal:T.typography.text.md,sm:T.typography.text.sm},platform:{normal:T.typography.text.sm,sm:T.typography.text.sm}},Gg=X.label`
|
|
467
490
|
${({$alert:e,$disabled:t,$variant:r})=>{const n=t?300:600;return`
|
|
468
491
|
display: flex;
|
|
469
|
-
align-items:
|
|
492
|
+
align-items: start;
|
|
470
493
|
position: relative;
|
|
471
494
|
cursor: ${t?"not-allowed":"pointer"};
|
|
472
|
-
font-family: ${
|
|
473
|
-
font-size: ${
|
|
474
|
-
font-weight: ${e?"inherit":
|
|
475
|
-
line-height: ${
|
|
495
|
+
font-family: ${T.typography.type.primary};
|
|
496
|
+
font-size: ${hs[r].normal};
|
|
497
|
+
font-weight: ${e?"inherit":T.typography.weight.regular};
|
|
498
|
+
line-height: ${T.spacing[1]};
|
|
476
499
|
letter-spacing: 0;
|
|
477
500
|
text-align: left;
|
|
478
|
-
color: ${e?"inherit":
|
|
501
|
+
color: ${e?"inherit":T.palette.gray[n]};
|
|
479
502
|
|
|
480
503
|
input {
|
|
481
504
|
position: absolute;
|
|
@@ -486,109 +509,231 @@ Check the top-level render call using <`+D+">.")}return E}}function Me(p,E){{if(
|
|
|
486
509
|
}
|
|
487
510
|
|
|
488
511
|
svg {
|
|
489
|
-
margin-right: ${
|
|
512
|
+
margin-right: ${T.spacing[.5]};
|
|
490
513
|
top: 0;
|
|
491
514
|
left: 0;
|
|
492
|
-
height: ${
|
|
493
|
-
width: ${
|
|
494
|
-
padding: ${
|
|
495
|
-
background-color: ${
|
|
496
|
-
border-radius: ${r==="web"?
|
|
497
|
-
border: 1px solid ${
|
|
515
|
+
height: ${T.spacing[.5]};
|
|
516
|
+
width: ${T.spacing[.5]};
|
|
517
|
+
padding: ${T.spacing[.25]};
|
|
518
|
+
background-color: ${T.palette.white};
|
|
519
|
+
border-radius: ${r==="web"?T.spacing[.125]:T.spacing[.25]};
|
|
520
|
+
border: 1px solid ${T.palette.gray[600]};
|
|
498
521
|
}
|
|
499
522
|
|
|
500
523
|
svg > path {
|
|
501
|
-
fill: ${
|
|
524
|
+
fill: ${T.palette.white};
|
|
502
525
|
}
|
|
503
526
|
|
|
504
527
|
input:checked ~ span > svg {
|
|
505
|
-
background-color: ${
|
|
506
|
-
border: 1px solid ${
|
|
528
|
+
background-color: ${T.palette.primary[500]};
|
|
529
|
+
border: 1px solid ${T.palette.primary[500]};
|
|
507
530
|
}
|
|
508
531
|
|
|
509
532
|
input:disabled ~ span > svg {
|
|
510
|
-
border: 1px solid ${
|
|
533
|
+
border: 1px solid ${T.palette.gray[300]};
|
|
511
534
|
cursor: not-allowed;
|
|
512
535
|
}
|
|
513
536
|
|
|
514
537
|
input:not(:disabled):hover ~ span > svg {
|
|
515
|
-
box-shadow: 0 0 0 4px ${
|
|
538
|
+
box-shadow: 0 0 0 4px ${T.palette.gray[100]};
|
|
516
539
|
}
|
|
517
540
|
|
|
518
541
|
input:checked:disabled ~ span > svg {
|
|
519
|
-
background-color: ${
|
|
520
|
-
border: 1px solid ${
|
|
542
|
+
background-color: ${T.palette.gray[300]};
|
|
543
|
+
border: 1px solid ${T.palette.gray[300]};
|
|
521
544
|
}
|
|
522
545
|
|
|
523
546
|
input:not(:disabled):hover:checked ~ span > svg {
|
|
524
|
-
box-shadow: 0 0 0 4px ${
|
|
547
|
+
box-shadow: 0 0 0 4px ${T.palette.primary[50]};
|
|
525
548
|
}
|
|
526
549
|
|
|
527
550
|
input:checked ~ span > svg > path {
|
|
528
|
-
fill: ${
|
|
551
|
+
fill: ${T.palette.white};
|
|
529
552
|
}
|
|
530
553
|
|
|
531
554
|
input:checked:disabled ~ span > svg > path {
|
|
532
|
-
fill: ${
|
|
555
|
+
fill: ${T.palette.white};
|
|
533
556
|
}
|
|
534
557
|
|
|
535
|
-
@media screen and (max-width: ${
|
|
536
|
-
font-size: ${
|
|
558
|
+
@media screen and (max-width: ${T.breakpoints.mobile}) {
|
|
559
|
+
font-size: ${hs[r].sm};
|
|
537
560
|
}
|
|
538
561
|
`}}
|
|
539
|
-
`,Ug=({defaultChecked:e=!1,disabled:t=!1,label:r,name:n,onChange:o,onClick:i,onFocus:a,onKeyDown:s,value:c,variant:u="web"})=>S.jsxs(Wg,{$disabled:t,$variant:u,children:[S.jsx("input",{"aria-label":n,defaultChecked:e,disabled:t,name:n,onChange:o,onClick:i,onFocus:a,onKeyDown:s,type:"checkbox",value:c}),S.jsx(ht,{disabled:t,icon:"check",iconSize:"sm"}),r??c]});var sr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xi={exports:{}};(function(e,t){var r=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",f="[object Function]",y="[object GeneratorFunction]",m="[object Map]",v="[object Number]",w="[object Object]",_="[object Promise]",O="[object RegExp]",$="[object Set]",C="[object String]",P="[object Symbol]",I="[object WeakMap]",M="[object ArrayBuffer]",k="[object DataView]",T="[object Float32Array]",V="[object Float64Array]",U="[object Int8Array]",Y="[object Int16Array]",pe="[object Int32Array]",ve="[object Uint8Array]",se="[object Uint8ClampedArray]",N="[object Uint16Array]",J="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,te=/\w*$/,B=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,H={};H[i]=H[a]=H[M]=H[k]=H[s]=H[c]=H[T]=H[V]=H[U]=H[Y]=H[pe]=H[m]=H[v]=H[w]=H[O]=H[$]=H[C]=H[P]=H[ve]=H[se]=H[N]=H[J]=!0,H[u]=H[f]=H[I]=!1;var ye=typeof sr=="object"&&sr&&sr.Object===Object&&sr,$e=typeof self=="object"&&self&&self.Object===Object&&self,re=ye||$e||Function("return this")(),st=t&&!t.nodeType&&t,tt=st&&!0&&e&&!e.nodeType&&e,qe=tt&&tt.exports===st;function Ge(d,b){return d.set(b[0],b[1]),d}function be(d,b){return d.add(b),d}function Ce(d,b){for(var A=-1,W=d?d.length:0;++A<W&&b(d[A],A,d)!==!1;);return d}function Ae(d,b){for(var A=-1,W=b.length,it=d.length;++A<W;)d[it+A]=b[A];return d}function Be(d,b,A,W){for(var it=-1,Ot=d?d.length:0;++it<Ot;)A=b(A,d[it],it,d);return A}function Ie(d,b){for(var A=-1,W=Array(d);++A<d;)W[A]=b(A);return W}function gt(d,b){return d==null?void 0:d[b]}function It(d){var b=!1;if(d!=null&&typeof d.toString!="function")try{b=!!(d+"")}catch{}return b}function Te(d){var b=-1,A=Array(d.size);return d.forEach(function(W,it){A[++b]=[it,W]}),A}function yt(d,b){return function(A){return d(b(A))}}function Ke(d){var b=-1,A=Array(d.size);return d.forEach(function(W){A[++b]=W}),A}var mt=Array.prototype,we=Function.prototype,vt=Object.prototype,bt=re["__core-js_shared__"],wt=function(){var d=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),jt=we.toString,rt=vt.hasOwnProperty,ct=vt.toString,xt=RegExp("^"+jt.call(rt).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Je=qe?re.Buffer:void 0,Et=re.Symbol,kt=re.Uint8Array,Mt=yt(Object.getPrototypeOf,Object),He=Object.create,Lt=vt.propertyIsEnumerable,nt=mt.splice,Ee=Object.getOwnPropertySymbols,Wt=Je?Je.isBuffer:void 0,Ut=yt(Object.keys,Object),$t=ne(re,"DataView"),_t=ne(re,"Map"),Ye=ne(re,"Promise"),lt=ne(re,"Set"),We=ne(re,"WeakMap"),Qe=ne(Object,"create"),At=gr($t),ke=gr(_t),Xe=gr(Ye),q=gr(lt),ue=gr(We),Me=Et?Et.prototype:void 0,St=Me?Me.valueOf:void 0;function L(d){var b=-1,A=d?d.length:0;for(this.clear();++b<A;){var W=d[b];this.set(W[0],W[1])}}function Q(){this.__data__=Qe?Qe(null):{}}function X(d){return this.has(d)&&delete this.__data__[d]}function Oe(d){var b=this.__data__;if(Qe){var A=b[d];return A===n?void 0:A}return rt.call(b,d)?b[d]:void 0}function Ne(d){var b=this.__data__;return Qe?b[d]!==void 0:rt.call(b,d)}function ut(d,b){var A=this.__data__;return A[d]=Qe&&b===void 0?n:b,this}L.prototype.clear=Q,L.prototype.delete=X,L.prototype.get=Oe,L.prototype.has=Ne,L.prototype.set=ut;function Re(d){var b=-1,A=d?d.length:0;for(this.clear();++b<A;){var W=d[b];this.set(W[0],W[1])}}function p(){this.__data__=[]}function E(d){var b=this.__data__,A=hr(b,d);if(A<0)return!1;var W=b.length-1;return A==W?b.pop():nt.call(b,A,1),!0}function D(d){var b=this.__data__,A=hr(b,d);return A<0?void 0:b[A][1]}function G(d){return hr(this.__data__,d)>-1}function ge(d,b){var A=this.__data__,W=hr(A,d);return W<0?A.push([d,b]):A[W][1]=b,this}Re.prototype.clear=p,Re.prototype.delete=E,Re.prototype.get=D,Re.prototype.has=G,Re.prototype.set=ge;function fe(d){var b=-1,A=d?d.length:0;for(this.clear();++b<A;){var W=d[b];this.set(W[0],W[1])}}function ce(){this.__data__={hash:new L,map:new(_t||Re),string:new L}}function ae(d){return Z(this,d).delete(d)}function Fe(d){return Z(this,d).get(d)}function K(d){return Z(this,d).has(d)}function me(d,b){return Z(this,d).set(d,b),this}fe.prototype.clear=ce,fe.prototype.delete=ae,fe.prototype.get=Fe,fe.prototype.has=K,fe.prototype.set=me;function je(d){this.__data__=new Re(d)}function Ze(){this.__data__=new Re}function er(d){return this.__data__.delete(d)}function ot(d){return this.__data__.get(d)}function To(d){return this.__data__.has(d)}function _n(d,b){var A=this.__data__;if(A instanceof Re){var W=A.__data__;if(!_t||W.length<r-1)return W.push([d,b]),this;A=this.__data__=new fe(W)}return A.set(d,b),this}je.prototype.clear=Ze,je.prototype.delete=er,je.prototype.get=ot,je.prototype.has=To,je.prototype.set=_n;function Oo(d,b){var A=Fo(d)||Bl(d)?Ie(d.length,String):[],W=A.length,it=!!W;for(var Ot in d)rt.call(d,Ot)&&!(it&&(Ot=="length"||Nt(Ot,W)))&&A.push(Ot);return A}function Hr(d,b,A){var W=d[b];(!(rt.call(d,b)&&fa(W,A))||A===void 0&&!(b in d))&&(d[b]=A)}function hr(d,b){for(var A=d.length;A--;)if(fa(d[A][0],b))return A;return-1}function Sn(d,b){return d&&R(b,Vo(b),d)}function Yr(d,b,A,W,it,Ot,rr){var Rt;if(W&&(Rt=Ot?W(d,it,Ot,rr):W(d)),Rt!==void 0)return Rt;if(!Tn(d))return d;var ga=Fo(d);if(ga){if(Rt=Tt(d),!b)return x(d,Rt)}else{var Ar=ze(d),ya=Ar==f||Ar==y;if(Ul(d))return Po(d,b);if(Ar==w||Ar==i||ya&&!Ot){if(It(d))return Ot?d:{};if(Rt=Ct(ya?{}:d),!b)return F(d,Sn(Rt,d))}else{if(!H[Ar])return Ot?d:{};Rt=tr(d,Ar,Yr,b)}}rr||(rr=new je);var ma=rr.get(d);if(ma)return ma;if(rr.set(d,Rt),!ga)var va=A?he(d):Vo(d);return Ce(va||d,function(zo,On){va&&(On=zo,zo=d[On]),Hr(Rt,On,Yr(zo,b,A,W,On,d,rr))}),Rt}function Cn(d){return Tn(d)?He(d):{}}function En(d,b,A){var W=b(d);return Fo(d)?W:Ae(W,A(d))}function Ro(d){return ct.call(d)}function jo(d){if(!Tn(d)||An(d))return!1;var b=ha(d)||It(d)?xt:B;return b.test(gr(d))}function kn(d){if(!Kr(d))return Ut(d);var b=[];for(var A in Object(d))rt.call(d,A)&&A!="constructor"&&b.push(A);return b}function Po(d,b){if(b)return d.slice();var A=new d.constructor(d.length);return d.copy(A),A}function Qr(d){var b=new d.constructor(d.byteLength);return new kt(b).set(new kt(d)),b}function Do(d,b){var A=b?Qr(d.buffer):d.buffer;return new d.constructor(A,d.byteOffset,d.byteLength)}function Io(d,b,A){var W=b?A(Te(d),!0):Te(d);return Be(W,Ge,new d.constructor)}function Mo(d){var b=new d.constructor(d.source,te.exec(d));return b.lastIndex=d.lastIndex,b}function Lo(d,b,A){var W=b?A(Ke(d),!0):Ke(d);return Be(W,be,new d.constructor)}function l(d){return St?Object(St.call(d)):{}}function h(d,b){var A=b?Qr(d.buffer):d.buffer;return new d.constructor(A,d.byteOffset,d.length)}function x(d,b){var A=-1,W=d.length;for(b||(b=Array(W));++A<W;)b[A]=d[A];return b}function R(d,b,A,W){A||(A={});for(var it=-1,Ot=b.length;++it<Ot;){var rr=b[it],Rt=void 0;Hr(A,rr,Rt===void 0?d[rr]:Rt)}return A}function F(d,b){return R(d,Ve(d),b)}function he(d){return En(d,Vo,Ve)}function Z(d,b){var A=d.__data__;return No(b)?A[typeof b=="string"?"string":"hash"]:A.map}function ne(d,b){var A=gt(d,b);return jo(A)?A:void 0}var Ve=Ee?yt(Ee,Object):Hl,ze=Ro;($t&&ze(new $t(new ArrayBuffer(1)))!=k||_t&&ze(new _t)!=m||Ye&&ze(Ye.resolve())!=_||lt&&ze(new lt)!=$||We&&ze(new We)!=I)&&(ze=function(d){var b=ct.call(d),A=b==w?d.constructor:void 0,W=A?gr(A):void 0;if(W)switch(W){case At:return k;case ke:return m;case Xe:return _;case q:return $;case ue:return I}return b});function Tt(d){var b=d.length,A=d.constructor(b);return b&&typeof d[0]=="string"&&rt.call(d,"index")&&(A.index=d.index,A.input=d.input),A}function Ct(d){return typeof d.constructor=="function"&&!Kr(d)?Cn(Mt(d)):{}}function tr(d,b,A,W){var it=d.constructor;switch(b){case M:return Qr(d);case s:case c:return new it(+d);case k:return Do(d,W);case T:case V:case U:case Y:case pe:case ve:case se:case N:case J:return h(d,W);case m:return Io(d,W,A);case v:case C:return new it(d);case O:return Mo(d);case $:return Lo(d,W,A);case P:return l(d)}}function Nt(d,b){return b=b??o,!!b&&(typeof d=="number"||ie.test(d))&&d>-1&&d%1==0&&d<b}function No(d){var b=typeof d;return b=="string"||b=="number"||b=="symbol"||b=="boolean"?d!=="__proto__":d===null}function An(d){return!!wt&&wt in d}function Kr(d){var b=d&&d.constructor,A=typeof b=="function"&&b.prototype||vt;return d===A}function gr(d){if(d!=null){try{return jt.call(d)}catch{}try{return d+""}catch{}}return""}function zl(d){return Yr(d,!0,!0)}function fa(d,b){return d===b||d!==d&&b!==b}function Bl(d){return Wl(d)&&rt.call(d,"callee")&&(!Lt.call(d,"callee")||ct.call(d)==i)}var Fo=Array.isArray;function pa(d){return d!=null&&ql(d.length)&&!ha(d)}function Wl(d){return Gl(d)&&pa(d)}var Ul=Wt||Yl;function ha(d){var b=Tn(d)?ct.call(d):"";return b==f||b==y}function ql(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=o}function Tn(d){var b=typeof d;return!!d&&(b=="object"||b=="function")}function Gl(d){return!!d&&typeof d=="object"}function Vo(d){return pa(d)?Oo(d):kn(d)}function Hl(){return[]}function Yl(){return!1}e.exports=zl})(xi,xi.exports);var cr=xi.exports,$i=function(){return $i=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},$i.apply(this,arguments)};function qg(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(f){try{u(n.next(f))}catch(y){a(y)}}function c(f){try{u(n.throw(f))}catch(y){a(y)}}function u(f){f.done?i(f.value):o(f.value).then(s,c)}u((n=n.apply(e,[])).next())})}function Gg(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return c([u,f])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(r=0)),r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(f){u=[6,f],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function to(e,t,r,n,o){return qg(this,void 0,void 0,function(){var i,a;return Gg(this,function(s){switch(s.label){case 0:if(r===void 0)return[2];a=0,s.label=1;case 1:return a<r.length?[4,r[a](e,t,n,o,r)]:[3,4];case 2:if(i=s.sent(),i==="canceled")return[3,4];s.label=3;case 3:return a++,[3,1];case 4:return i!=="canceled"?[2,i]:[2]}})})}var _i=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:$i({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},Hg=function(){function e(t,r,n,o){var i=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=cr(r);to(t,a,n,this.htmlPluginState,o).then(function(s){if(i.isMounted){i.htmlPluginState.pluginEventSubscription.forEach(function(u){u()});var c=_i(o,s);i.imgElement.setAttribute("src",a.toURL(c))}})}return e.prototype.update=function(t,r,n){var o=this,i=cr(t);to(this.imgElement,i,r,this.htmlPluginState).then(function(a){if(o.isMounted){var s=_i(n,a);o.imgElement.setAttribute("src",i.toURL(s))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Le=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(r=>this.hasValue(r)),this}setDelimiter(t){return this.delimiter=t,this}},Yg=class extends Error{constructor(t="Unsupported"){super(t)}};function Gi(e){return new Yg(e)}function Qg(){return this._qualifierModel||{error:Gi(`unsupported qualifier ${this.constructor.name}`)}}let Kg=class{constructor(){this._qualifierModel={}}toJson(){return Qg.apply(this)}},le=class extends Kg{constructor(t,r){super(),this.delimiter="_",this.key=t,r instanceof Le?this.qualifierValue=r:(this.qualifierValue=new Le,this.qualifierValue.addValue(r))}toString(){const{key:t,delimiter:r,qualifierValue:n}=this;return`${t}${r}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},zt=class extends le{constructor(t,r){let n;r?n=new Le([t,`${r}`]).setDelimiter(":"):n=t,super("fl",n),this.flagValue=r}toString(){return super.toString().replace(/\./,"%2E")}getFlagValue(){return this.flagValue}};function Jg(e,t){const r=Array.from(e.entries());return t.forEach(n=>{r.push(["fl",n])}),r.sort().map(n=>n[1])}function Xg(){var e,t,r;const n=this._actionModel&&Object.keys(this._actionModel).length,o=(r=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||r===void 0?void 0:r.error;return o&&o instanceof Error?{error:o}:n?this._actionModel:{error:Gi(`unsupported action ${this.constructor.name}`)}}let Zg=class{constructor(){this._actionModel={}}toJson(){return Xg.apply(this)}},Qt=class extends Zg{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),Jg(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[r,n]=t.toLowerCase().split("_");r==="fl"?this.flags.push(new zt(n)):this.qualifiers.set(r,new le(r,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new zt(t)):t instanceof zt&&this.flags.push(t),this}addValueToQualifier(t,r){return this.qualifiers.get(t).addValue(r),this}};class Hi extends Qt{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class bo extends Hi{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new le("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new le("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new le("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new le("h",t)),this}static fromJson(t){const r=new bo;return t.width&&r.width(t.width),t.height&&r.height(t.height),t.x&&r.x(t.x),t.y&&r.y(t.y),r}}function ey(){return new bo}function Ic(){return new Hi("faces")}function ty(){return new Hi("ocr_text")}class ry extends Qt{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(n=>this.addQualifier(n)),this._region.regionType==="custom"&&this.addQualifier(new le("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new le("e",`blur_region${t}`)),this.addQualifier(new le("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new le("e",`blur_faces${t}`))):this.addQualifier(new le("e",`blur${t}`))}static fromJson(t){const{strength:r,region:n}=t,o=new this(r);return r&&o.strength(r),n&&n.regionType==="faces"&&o.region(Ic()),n&&n.regionType==="ocr_text"&&o.region(ty()),n&&n.regionType==="custom"&&o.region(bo.fromJson(n)),o}}function Er(e){const t={};return Object.keys(e).forEach(r=>{t[e[r]]=r}),t}const Mc={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad"},ny={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},Lc={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Nc={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},oy={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},Fc={444:"CHROMA_444",420:"CHROMA_420"},iy={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},ay=Er(Fc);Er(iy);const sy=Er(Mc),cy=Er(ny),Vc=Er(Lc);Er(Nc);Er(oy);class zc extends Qt{constructor(t,r){super(),this._actionModel={},this._actionModel.actionType=Vc[t]||t;const n=this.createEffectQualifier(t,r);this.addQualifier(n)}createEffectQualifier(t,r){let n;return r?n=new Le([t,`${r}`]).setDelimiter(":"):n=new Le(t),new le("e",n)}static fromJson(t){const{actionType:r,level:n,strength:o}=t,i=Lc[r]||r;return new this(i,n||o)}}class ly extends zc{constructor(t,r){super(t,r),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=Vc[t]||t,r&&this.setLevel(r)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const r=this.createEffectQualifier(this.effectType,t);return this.addQualifier(r),this}}function wo(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class uy extends Qt{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new Le(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Le(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Le(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Le(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Le(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new le("e",t))}static fromJson(t){const{actionType:r,paths:n,cornersLevel:o,despeckleLevel:i,detailLevel:a,numOfColors:s}=t,c=new this;return n&&c.paths(n),o&&c.cornersLevel(o),i&&c.despeckleLevel(i),a&&c.detailsLevel(a),s&&c.numOfColors(s),c}}class dy extends ly{level(t){return this._actionModel.level=t,this.setLevel(t)}}class fy extends Qt{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new le("e",new Le("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new le("e",new Le(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new le("e",new Le(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:r,type:n,stripesStrength:o}=t,i=new this;return n==="xray"&&i.xray(),n==="stripes"&&o&&i.stripesStrength(o),i}}class py extends dy{color(t){return this._actionModel.color=t,this.addQualifier(new le("co",new Le(wo(t))))}static fromJson(t){const{actionType:r,level:n,color:o}=t,i=new this(r,n);return o&&i.color(o),i}}class hy extends Qt{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(n=>this.addQualifier(n)),this._region.regionType==="custom"&&this.addQualifier(new le("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new le("e",`pixelate_region${t}`)),this.addQualifier(new le("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new le("e",`pixelate_faces${t}`))):this.addQualifier(new le("e",`pixelate${t}`))}static fromJson(t){const{region:r,squareSize:n}=t,o=new this(n);return n&&o.squareSize(n),r&&r.regionType==="faces"&&o.region(Ic()),r&&r.regionType==="custom"&&o.region(ey()),o}}function gy(e){return new ry(e)}function yy(){return new zc("grayscale")}function ds(e){return new py("colorize",e)}function my(){return new uy}function vy(){return new fy}function by(e){return new hy(e)}let wy=class extends Qt{constructor(t){super(),this._actionModel={},this.addQualifier(new le("b",new Le(wo(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:r}=t;return new this(r)}},fs=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Gi(`unsupported action ${this.constructor.name}`)}}};function xy(e){const t=e;return"error"in t&&!!t.error}function $y(){return new zt("ignore_aspect_ratio")}function _y(){return new zt("lossy")}function Sy(){return new zt("preserve_transparency")}function Cy(e){return new zt("progressive",e)}function Ey(){return new zt("region_relative")}function ky(){return new zt("relative")}let Yi=class extends Le{constructor(t){super(t),this.val=t}getValue(){return this.val}},Bc=class extends Qt{constructor(t,r,n){super(),this._actionModel={};let o;r instanceof Yi?o=r.getValue():o=r,this._actionModel.actionType=cy[t],this._actionModel[n]=o,this.addQualifier(new le(t,r))}},Ay=class extends zt{constructor(t){super("progressive",t)}},Si=class extends Bc{constructor(t,r){super(t,r,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(_y()),this}progressive(t){return t instanceof Ay?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(Cy(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(Sy()),this}static fromJson(t){const{formatType:r,lossy:n,progressive:o,preserveTransparency:i}=t;let a;return r?a=new this("f",r):a=new this("f"),o&&(o.mode?a.progressive(o.mode):a.progressive()),n&&a.lossy(),i&&a.preserveTransparency(),a}},xo=class Wc{constructor(){this.actions=[]}addAction(t){let r;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";r=new fs(t)}else r=t;return this.actions.push(r),this}addTransformation(t){return t instanceof Wc?this.actions=this.actions.concat(t.actions):this.actions.push(new fs(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new Si("q",t)),this}format(t){return this.addAction(new Si("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new wy(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const r=new Qt;let n=t;return typeof t=="string"&&(n=new zt(t)),r.addQualifier(n),this.addAction(r)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const r of this.actions){const n=r.toJson();if(xy(n))return n;t.push(n)}return{actions:t}}};function ps(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class Ty extends Le{}class Oy extends Qt{constructor(t,r,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=sy[t]||t,this.addQualifier(new le("c",t)),r&&this.width(r),n&&this.height(n)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new le("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new le("w",t))}aspectRatio(t){if(t instanceof Ty)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new le("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=ps(t),this.addQualifier(new le("ar",ps(t)));if(t instanceof zt)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(ky())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(Ey())}static fromJson(t){const{actionType:r,dimensions:n,relative:o,regionRelative:i}=t,{aspectRatio:a,width:s,height:c}=n,u=Mc[r]||r,f=new this(u,s,c);return a&&f.aspectRatio(a==="ignore_aspect_ratio"?$y():a),o&&f.relative(),i&&f.regionRelative(),f}}class Qi extends le{constructor(t){super("g",new Le(t))}}class Uc extends Qi{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class qc extends Qi{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class Gc extends Qi{constructor(t){super(t)}}function Ry(e){return new Gc(e)}function Hc(...e){const t=[...e];return new qc(t)}function Yc(){return new Uc}class $o extends Le{constructor(t){super(),this.name=t}toString(){return this.name}}function jy(){return new $o("ocr_text")}function Py(e){return e&&`${e}`.split(":")[0]==="auto"}function Dy(e){const t=Ki(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Ki(e){return`${e}`.replace("g_","")}function Iy(e){return{compass:Ki(e),gravityType:"direction"}}function My(e){return Ki(e)==="ocr_text"}function Ly(){return{gravityType:"ocr"}}function Ny(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function Fy(e){const r=e.toString().split("_"),n={object:r[0]};return r.length>1&&(r[1]==="avoid"?n.avoid=!0:n.weight=+r[1]),n}function Qc(e){let t;const r=e==="auto"?new Uc:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(o=>o!=="auto"):t=r.qualifierValue.values.filter(o=>o!=="auto"),{gravityType:"auto",autoFocus:t.map(Fy)}}function Vy(e){const t=`${e}`.split(":").includes("auto"),r=e.qualifierValue.values,o={gravityType:"object",focusOnObjects:(t?r.slice(0,r.length-1):r).map(i=>`${i}`)};if(t){const i=r[r.length-1].values.slice(1),a=Yc().autoFocus(...i);o.fallbackGravity=Qc(a)}return o}function zy(e){const r=e.split(":").map(n=>new $o(n));return new qc(r)}function By(e){return Dy(e)?Iy(e):My(e)?Ly():Py(e)||Ny(e)?Qc(e):Vy(typeof e=="string"?zy(e):e)}class Ji extends Le{constructor(t,r){super(),this._weight=r,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,r){return new Ji(t,r)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class Kc extends Le{constructor(t){super(),this.val=t}toString(){return this.val}}function Wy(e){return e.gravityType==="direction"}function Uy(e){return e.gravityType==="ocr"}function qy(e){return e.gravityType==="auto"}function Gy(e){const{object:t,weight:r,avoid:n}=e,o=new Ji(new $o(t));return(r||r===0)&&o.weight(r),n&&o.avoid(),o}function Jc(e){const r=(e.autoFocus||[]).map(Gy);return Yc().autoFocus(...r)}function Hy(e){const t=(e.focusOnObjects||[]).map(n=>new $o(n)),r=Hc(...t);if(e.fallbackGravity){const n=Jc(e.fallbackGravity);r.fallbackGravity(n)}return r}function Yy(e){return Wy(e)?new Gc(new Kc(e.compass)):Uy(e)?Hc(jy()):qy(e)?Jc(e):Hy(e)}class Xi extends Oy{gravity(t){this._actionModel.gravity=By(t);const r=typeof t=="string"?new le("g",t):t;return this.addQualifier(r)}static fromJson(t){const r=super.fromJson.apply(this,[t]);return t.gravity&&r.gravity(Yy(t.gravity)),r}}class wn extends le{constructor(t){super("b"),t&&this.addValue(t)}}const Xc=100,Qy=0;class Ky extends wn{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",r=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${Xc}:${this.brightnessLevel}`:"";return`b_blurred${t}${r}`}}var Zc=Ky;class Zi extends wn{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(r=>wo(r)),this}}class el extends Zi{toString(){return`
|
|
562
|
+
`,qg=({defaultChecked:e=!1,disabled:t=!1,label:r,name:n,onChange:o,onClick:i,onFocus:a,onKeyDown:s,value:c,variant:u="web"})=>b.jsxs(Gg,{$disabled:t,$variant:u,children:[b.jsx("input",{"aria-label":n,defaultChecked:e,disabled:t,id:n,name:n,onChange:o,onClick:i,onFocus:a,onKeyDown:s,type:"checkbox",value:c}),b.jsx(nt,{disabled:t,icon:"check",iconSize:"sm"}),r??c]});var sr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_i={exports:{}};(function(e,t){var r=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",f="[object Function]",y="[object GeneratorFunction]",h="[object Map]",g="[object Number]",x="[object Object]",S="[object Promise]",k="[object RegExp]",_="[object Set]",C="[object String]",P="[object Symbol]",M="[object WeakMap]",D="[object ArrayBuffer]",A="[object DataView]",j="[object Float32Array]",z="[object Float64Array]",H="[object Int8Array]",V="[object Int16Array]",ie="[object Int32Array]",he="[object Uint8Array]",ae="[object Uint8ClampedArray]",N="[object Uint16Array]",J="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,re=/\w*$/,W=/^\[object .+?Constructor\]$/,se=/^(?:0|[1-9]\d*)$/,Y={};Y[i]=Y[a]=Y[D]=Y[A]=Y[s]=Y[c]=Y[j]=Y[z]=Y[H]=Y[V]=Y[ie]=Y[h]=Y[g]=Y[x]=Y[k]=Y[_]=Y[C]=Y[P]=Y[he]=Y[ae]=Y[N]=Y[J]=!0,Y[u]=Y[f]=Y[M]=!1;var me=typeof sr=="object"&&sr&&sr.Object===Object&&sr,$e=typeof self=="object"&&self&&self.Object===Object&&self,ne=me||$e||Function("return this")(),lt=t&&!t.nodeType&&t,ot=lt&&!0&&e&&!e.nodeType&&e,qe=ot&&ot.exports===lt;function He(d,w){return d.set(w[0],w[1]),d}function be(d,w){return d.add(w),d}function Ce(d,w){for(var O=-1,U=d?d.length:0;++O<U&&w(d[O],O,d)!==!1;);return d}function Ae(d,w){for(var O=-1,U=w.length,ct=d.length;++O<U;)d[ct+O]=w[O];return d}function We(d,w,O,U){for(var ct=-1,Rt=d?d.length:0;++ct<Rt;)O=w(O,d[ct],ct,d);return O}function De(d,w){for(var O=-1,U=Array(d);++O<d;)U[O]=w(O);return U}function yt(d,w){return d==null?void 0:d[w]}function Dt(d){var w=!1;if(d!=null&&typeof d.toString!="function")try{w=!!(d+"")}catch{}return w}function Te(d){var w=-1,O=Array(d.size);return d.forEach(function(U,ct){O[++w]=[ct,U]}),O}function mt(d,w){return function(O){return d(w(O))}}function Xe(d){var w=-1,O=Array(d.size);return d.forEach(function(U){O[++w]=U}),O}var vt=Array.prototype,we=Function.prototype,bt=Object.prototype,wt=ne["__core-js_shared__"],xt=function(){var d=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),Pt=we.toString,it=bt.hasOwnProperty,ut=bt.toString,$t=RegExp("^"+Pt.call(it).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=qe?ne.Buffer:void 0,kt=ne.Symbol,At=ne.Uint8Array,Mt=mt(Object.getPrototypeOf,Object),Ye=Object.create,Lt=bt.propertyIsEnumerable,at=vt.splice,Ee=Object.getOwnPropertySymbols,Ut=Ze?Ze.isBuffer:void 0,Gt=mt(Object.keys,Object),_t=oe(ne,"DataView"),St=oe(ne,"Map"),Qe=oe(ne,"Promise"),dt=oe(ne,"Set"),Ue=oe(ne,"WeakMap"),Ke=oe(Object,"create"),Tt=gr(_t),ke=gr(St),et=gr(Qe),G=gr(dt),de=gr(Ue),Me=kt?kt.prototype:void 0,Ct=Me?Me.valueOf:void 0;function L(d){var w=-1,O=d?d.length:0;for(this.clear();++w<O;){var U=d[w];this.set(U[0],U[1])}}function Q(){this.__data__=Ke?Ke(null):{}}function Z(d){return this.has(d)&&delete this.__data__[d]}function Oe(d){var w=this.__data__;if(Ke){var O=w[d];return O===n?void 0:O}return it.call(w,d)?w[d]:void 0}function Ne(d){var w=this.__data__;return Ke?w[d]!==void 0:it.call(w,d)}function ft(d,w){var O=this.__data__;return O[d]=Ke&&w===void 0?n:w,this}L.prototype.clear=Q,L.prototype.delete=Z,L.prototype.get=Oe,L.prototype.has=Ne,L.prototype.set=ft;function Re(d){var w=-1,O=d?d.length:0;for(this.clear();++w<O;){var U=d[w];this.set(U[0],U[1])}}function p(){this.__data__=[]}function E(d){var w=this.__data__,O=hr(w,d);if(O<0)return!1;var U=w.length-1;return O==U?w.pop():at.call(w,O,1),!0}function I(d){var w=this.__data__,O=hr(w,d);return O<0?void 0:w[O][1]}function q(d){return hr(this.__data__,d)>-1}function ye(d,w){var O=this.__data__,U=hr(O,d);return U<0?O.push([d,w]):O[U][1]=w,this}Re.prototype.clear=p,Re.prototype.delete=E,Re.prototype.get=I,Re.prototype.has=q,Re.prototype.set=ye;function pe(d){var w=-1,O=d?d.length:0;for(this.clear();++w<O;){var U=d[w];this.set(U[0],U[1])}}function le(){this.__data__={hash:new L,map:new(St||Re),string:new L}}function ce(d){return ee(this,d).delete(d)}function Fe(d){return ee(this,d).get(d)}function K(d){return ee(this,d).has(d)}function ve(d,w){return ee(this,d).set(d,w),this}pe.prototype.clear=le,pe.prototype.delete=ce,pe.prototype.get=Fe,pe.prototype.has=K,pe.prototype.set=ve;function je(d){this.__data__=new Re(d)}function tt(){this.__data__=new Re}function er(d){return this.__data__.delete(d)}function st(d){return this.__data__.get(d)}function Ro(d){return this.__data__.has(d)}function kn(d,w){var O=this.__data__;if(O instanceof Re){var U=O.__data__;if(!St||U.length<r-1)return U.push([d,w]),this;O=this.__data__=new pe(U)}return O.set(d,w),this}je.prototype.clear=tt,je.prototype.delete=er,je.prototype.get=st,je.prototype.has=Ro,je.prototype.set=kn;function jo(d,w){var O=Vo(d)||Wl(d)?De(d.length,String):[],U=O.length,ct=!!U;for(var Rt in d)it.call(d,Rt)&&!(ct&&(Rt=="length"||Nt(Rt,U)))&&O.push(Rt);return O}function Hr(d,w,O){var U=d[w];(!(it.call(d,w)&&ya(U,O))||O===void 0&&!(w in d))&&(d[w]=O)}function hr(d,w){for(var O=d.length;O--;)if(ya(d[O][0],w))return O;return-1}function An(d,w){return d&&R(w,Bo(w),d)}function Yr(d,w,O,U,ct,Rt,rr){var jt;if(U&&(jt=Rt?U(d,ct,Rt,rr):U(d)),jt!==void 0)return jt;if(!Pn(d))return d;var ba=Vo(d);if(ba){if(jt=Ot(d),!w)return $(d,jt)}else{var Ar=Be(d),wa=Ar==f||Ar==y;if(Gl(d))return Do(d,w);if(Ar==x||Ar==i||wa&&!Rt){if(Dt(d))return Rt?d:{};if(jt=Et(wa?{}:d),!w)return F(d,An(jt,d))}else{if(!Y[Ar])return Rt?d:{};jt=tr(d,Ar,Yr,w)}}rr||(rr=new je);var xa=rr.get(d);if(xa)return xa;if(rr.set(d,jt),!ba)var $a=O?ge(d):Bo(d);return Ce($a||d,function(Wo,In){$a&&(In=Wo,Wo=d[In]),Hr(jt,In,Yr(Wo,w,O,U,In,d,rr))}),jt}function Tn(d){return Pn(d)?Ye(d):{}}function On(d,w,O){var U=w(d);return Vo(d)?U:Ae(U,O(d))}function Po(d){return ut.call(d)}function Io(d){if(!Pn(d)||jn(d))return!1;var w=va(d)||Dt(d)?$t:W;return w.test(gr(d))}function Rn(d){if(!Kr(d))return Gt(d);var w=[];for(var O in Object(d))it.call(d,O)&&O!="constructor"&&w.push(O);return w}function Do(d,w){if(w)return d.slice();var O=new d.constructor(d.length);return d.copy(O),O}function Qr(d){var w=new d.constructor(d.byteLength);return new At(w).set(new At(d)),w}function Mo(d,w){var O=w?Qr(d.buffer):d.buffer;return new d.constructor(O,d.byteOffset,d.byteLength)}function Lo(d,w,O){var U=w?O(Te(d),!0):Te(d);return We(U,He,new d.constructor)}function No(d){var w=new d.constructor(d.source,re.exec(d));return w.lastIndex=d.lastIndex,w}function Fo(d,w,O){var U=w?O(Xe(d),!0):Xe(d);return We(U,be,new d.constructor)}function l(d){return Ct?Object(Ct.call(d)):{}}function m(d,w){var O=w?Qr(d.buffer):d.buffer;return new d.constructor(O,d.byteOffset,d.length)}function $(d,w){var O=-1,U=d.length;for(w||(w=Array(U));++O<U;)w[O]=d[O];return w}function R(d,w,O,U){O||(O={});for(var ct=-1,Rt=w.length;++ct<Rt;){var rr=w[ct],jt=void 0;Hr(O,rr,jt===void 0?d[rr]:jt)}return O}function F(d,w){return R(d,Ve(d),w)}function ge(d){return On(d,Bo,Ve)}function ee(d,w){var O=d.__data__;return zo(w)?O[typeof w=="string"?"string":"hash"]:O.map}function oe(d,w){var O=yt(d,w);return Io(O)?O:void 0}var Ve=Ee?mt(Ee,Object):Yl,Be=Po;(_t&&Be(new _t(new ArrayBuffer(1)))!=A||St&&Be(new St)!=h||Qe&&Be(Qe.resolve())!=S||dt&&Be(new dt)!=_||Ue&&Be(new Ue)!=M)&&(Be=function(d){var w=ut.call(d),O=w==x?d.constructor:void 0,U=O?gr(O):void 0;if(U)switch(U){case Tt:return A;case ke:return h;case et:return S;case G:return _;case de:return M}return w});function Ot(d){var w=d.length,O=d.constructor(w);return w&&typeof d[0]=="string"&&it.call(d,"index")&&(O.index=d.index,O.input=d.input),O}function Et(d){return typeof d.constructor=="function"&&!Kr(d)?Tn(Mt(d)):{}}function tr(d,w,O,U){var ct=d.constructor;switch(w){case D:return Qr(d);case s:case c:return new ct(+d);case A:return Mo(d,U);case j:case z:case H:case V:case ie:case he:case ae:case N:case J:return m(d,U);case h:return Lo(d,U,O);case g:case C:return new ct(d);case k:return No(d);case _:return Fo(d,U,O);case P:return l(d)}}function Nt(d,w){return w=w??o,!!w&&(typeof d=="number"||se.test(d))&&d>-1&&d%1==0&&d<w}function zo(d){var w=typeof d;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?d!=="__proto__":d===null}function jn(d){return!!xt&&xt in d}function Kr(d){var w=d&&d.constructor,O=typeof w=="function"&&w.prototype||bt;return d===O}function gr(d){if(d!=null){try{return Pt.call(d)}catch{}try{return d+""}catch{}}return""}function Bl(d){return Yr(d,!0,!0)}function ya(d,w){return d===w||d!==d&&w!==w}function Wl(d){return Ul(d)&&it.call(d,"callee")&&(!Lt.call(d,"callee")||ut.call(d)==i)}var Vo=Array.isArray;function ma(d){return d!=null&&ql(d.length)&&!va(d)}function Ul(d){return Hl(d)&&ma(d)}var Gl=Ut||Ql;function va(d){var w=Pn(d)?ut.call(d):"";return w==f||w==y}function ql(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=o}function Pn(d){var w=typeof d;return!!d&&(w=="object"||w=="function")}function Hl(d){return!!d&&typeof d=="object"}function Bo(d){return ma(d)?jo(d):Rn(d)}function Yl(){return[]}function Ql(){return!1}e.exports=Bl})(_i,_i.exports);var cr=_i.exports,Si=function(){return Si=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Si.apply(this,arguments)};function Hg(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(f){try{u(n.next(f))}catch(y){a(y)}}function c(f){try{u(n.throw(f))}catch(y){a(y)}}function u(f){f.done?i(f.value):o(f.value).then(s,c)}u((n=n.apply(e,[])).next())})}function Yg(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return c([u,f])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(r=0)),r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(f){u=[6,f],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function oo(e,t,r,n,o){return Hg(this,void 0,void 0,function(){var i,a;return Yg(this,function(s){switch(s.label){case 0:if(r===void 0)return[2];a=0,s.label=1;case 1:return a<r.length?[4,r[a](e,t,n,o,r)]:[3,4];case 2:if(i=s.sent(),i==="canceled")return[3,4];s.label=3;case 3:return a++,[3,1];case 4:return i!=="canceled"?[2,i]:[2]}})})}var Ci=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Si({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},Qg=function(){function e(t,r,n,o){var i=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=cr(r);oo(t,a,n,this.htmlPluginState,o).then(function(s){if(i.isMounted){i.htmlPluginState.pluginEventSubscription.forEach(function(u){u()});var c=Ci(o,s);i.imgElement.setAttribute("src",a.toURL(c))}})}return e.prototype.update=function(t,r,n){var o=this,i=cr(t);oo(this.imgElement,i,r,this.htmlPluginState).then(function(a){if(o.isMounted){var s=Ci(n,a);o.imgElement.setAttribute("src",i.toURL(s))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Le=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(r=>this.hasValue(r)),this}setDelimiter(t){return this.delimiter=t,this}},Kg=class extends Error{constructor(t="Unsupported"){super(t)}};function Qi(e){return new Kg(e)}function Jg(){return this._qualifierModel||{error:Qi(`unsupported qualifier ${this.constructor.name}`)}}let Xg=class{constructor(){this._qualifierModel={}}toJson(){return Jg.apply(this)}},ue=class extends Xg{constructor(t,r){super(),this.delimiter="_",this.key=t,r instanceof Le?this.qualifierValue=r:(this.qualifierValue=new Le,this.qualifierValue.addValue(r))}toString(){const{key:t,delimiter:r,qualifierValue:n}=this;return`${t}${r}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Bt=class extends ue{constructor(t,r){let n;r?n=new Le([t,`${r}`]).setDelimiter(":"):n=t,super("fl",n),this.flagValue=r}toString(){return super.toString().replace(/\./,"%2E")}getFlagValue(){return this.flagValue}};function Zg(e,t){const r=Array.from(e.entries());return t.forEach(n=>{r.push(["fl",n])}),r.sort().map(n=>n[1])}function ey(){var e,t,r;const n=this._actionModel&&Object.keys(this._actionModel).length,o=(r=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||r===void 0?void 0:r.error;return o&&o instanceof Error?{error:o}:n?this._actionModel:{error:Qi(`unsupported action ${this.constructor.name}`)}}let ty=class{constructor(){this._actionModel={}}toJson(){return ey.apply(this)}},Qt=class extends ty{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),Zg(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[r,n]=t.toLowerCase().split("_");r==="fl"?this.flags.push(new Bt(n)):this.qualifiers.set(r,new ue(r,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Bt(t)):t instanceof Bt&&this.flags.push(t),this}addValueToQualifier(t,r){return this.qualifiers.get(t).addValue(r),this}};class Ki extends Qt{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class $o extends Ki{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new ue("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new ue("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new ue("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new ue("h",t)),this}static fromJson(t){const r=new $o;return t.width&&r.width(t.width),t.height&&r.height(t.height),t.x&&r.x(t.x),t.y&&r.y(t.y),r}}function ry(){return new $o}function Nc(){return new Ki("faces")}function ny(){return new Ki("ocr_text")}class oy extends Qt{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(n=>this.addQualifier(n)),this._region.regionType==="custom"&&this.addQualifier(new ue("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new ue("e",`blur_region${t}`)),this.addQualifier(new ue("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new ue("e",`blur_faces${t}`))):this.addQualifier(new ue("e",`blur${t}`))}static fromJson(t){const{strength:r,region:n}=t,o=new this(r);return r&&o.strength(r),n&&n.regionType==="faces"&&o.region(Nc()),n&&n.regionType==="ocr_text"&&o.region(ny()),n&&n.regionType==="custom"&&o.region($o.fromJson(n)),o}}function Er(e){const t={};return Object.keys(e).forEach(r=>{t[e[r]]=r}),t}const Fc={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad"},iy={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},zc={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Vc={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},ay={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},Bc={444:"CHROMA_444",420:"CHROMA_420"},sy={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},cy=Er(Bc);Er(sy);const ly=Er(Fc),uy=Er(iy),Wc=Er(zc);Er(Vc);Er(ay);class Uc extends Qt{constructor(t,r){super(),this._actionModel={},this._actionModel.actionType=Wc[t]||t;const n=this.createEffectQualifier(t,r);this.addQualifier(n)}createEffectQualifier(t,r){let n;return r?n=new Le([t,`${r}`]).setDelimiter(":"):n=new Le(t),new ue("e",n)}static fromJson(t){const{actionType:r,level:n,strength:o}=t,i=zc[r]||r;return new this(i,n||o)}}class dy extends Uc{constructor(t,r){super(t,r),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=Wc[t]||t,r&&this.setLevel(r)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const r=this.createEffectQualifier(this.effectType,t);return this.addQualifier(r),this}}function _o(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class fy extends Qt{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new Le(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Le(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Le(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Le(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Le(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new ue("e",t))}static fromJson(t){const{actionType:r,paths:n,cornersLevel:o,despeckleLevel:i,detailLevel:a,numOfColors:s}=t,c=new this;return n&&c.paths(n),o&&c.cornersLevel(o),i&&c.despeckleLevel(i),a&&c.detailsLevel(a),s&&c.numOfColors(s),c}}class py extends dy{level(t){return this._actionModel.level=t,this.setLevel(t)}}class hy extends Qt{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new ue("e",new Le("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new ue("e",new Le(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new ue("e",new Le(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:r,type:n,stripesStrength:o}=t,i=new this;return n==="xray"&&i.xray(),n==="stripes"&&o&&i.stripesStrength(o),i}}class gy extends py{color(t){return this._actionModel.color=t,this.addQualifier(new ue("co",new Le(_o(t))))}static fromJson(t){const{actionType:r,level:n,color:o}=t,i=new this(r,n);return o&&i.color(o),i}}class yy extends Qt{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(n=>this.addQualifier(n)),this._region.regionType==="custom"&&this.addQualifier(new ue("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new ue("e",`pixelate_region${t}`)),this.addQualifier(new ue("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new ue("e",`pixelate_faces${t}`))):this.addQualifier(new ue("e",`pixelate${t}`))}static fromJson(t){const{region:r,squareSize:n}=t,o=new this(n);return n&&o.squareSize(n),r&&r.regionType==="faces"&&o.region(Nc()),r&&r.regionType==="custom"&&o.region(ry()),o}}function my(e){return new oy(e)}function vy(){return new Uc("grayscale")}function gs(e){return new gy("colorize",e)}function by(){return new fy}function wy(){return new hy}function xy(e){return new yy(e)}let $y=class extends Qt{constructor(t){super(),this._actionModel={},this.addQualifier(new ue("b",new Le(_o(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:r}=t;return new this(r)}},ys=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Qi(`unsupported action ${this.constructor.name}`)}}};function _y(e){const t=e;return"error"in t&&!!t.error}function Sy(){return new Bt("ignore_aspect_ratio")}function Cy(){return new Bt("lossy")}function Ey(){return new Bt("preserve_transparency")}function ky(e){return new Bt("progressive",e)}function Ay(){return new Bt("region_relative")}function Ty(){return new Bt("relative")}let Ji=class extends Le{constructor(t){super(t),this.val=t}getValue(){return this.val}},Gc=class extends Qt{constructor(t,r,n){super(),this._actionModel={};let o;r instanceof Ji?o=r.getValue():o=r,this._actionModel.actionType=uy[t],this._actionModel[n]=o,this.addQualifier(new ue(t,r))}},Oy=class extends Bt{constructor(t){super("progressive",t)}},Ei=class extends Gc{constructor(t,r){super(t,r,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(Cy()),this}progressive(t){return t instanceof Oy?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(ky(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(Ey()),this}static fromJson(t){const{formatType:r,lossy:n,progressive:o,preserveTransparency:i}=t;let a;return r?a=new this("f",r):a=new this("f"),o&&(o.mode?a.progressive(o.mode):a.progressive()),n&&a.lossy(),i&&a.preserveTransparency(),a}},So=class qc{constructor(){this.actions=[]}addAction(t){let r;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";r=new ys(t)}else r=t;return this.actions.push(r),this}addTransformation(t){return t instanceof qc?this.actions=this.actions.concat(t.actions):this.actions.push(new ys(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new Ei("q",t)),this}format(t){return this.addAction(new Ei("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new $y(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const r=new Qt;let n=t;return typeof t=="string"&&(n=new Bt(t)),r.addQualifier(n),this.addAction(r)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const r of this.actions){const n=r.toJson();if(_y(n))return n;t.push(n)}return{actions:t}}};function ms(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class Ry extends Le{}class jy extends Qt{constructor(t,r,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=ly[t]||t,this.addQualifier(new ue("c",t)),r&&this.width(r),n&&this.height(n)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new ue("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new ue("w",t))}aspectRatio(t){if(t instanceof Ry)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new ue("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=ms(t),this.addQualifier(new ue("ar",ms(t)));if(t instanceof Bt)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(Ty())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(Ay())}static fromJson(t){const{actionType:r,dimensions:n,relative:o,regionRelative:i}=t,{aspectRatio:a,width:s,height:c}=n,u=Fc[r]||r,f=new this(u,s,c);return a&&f.aspectRatio(a==="ignore_aspect_ratio"?Sy():a),o&&f.relative(),i&&f.regionRelative(),f}}class Xi extends ue{constructor(t){super("g",new Le(t))}}class Hc extends Xi{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class Yc extends Xi{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class Qc extends Xi{constructor(t){super(t)}}function Py(e){return new Qc(e)}function Kc(...e){const t=[...e];return new Yc(t)}function Jc(){return new Hc}class Co extends Le{constructor(t){super(),this.name=t}toString(){return this.name}}function Iy(){return new Co("ocr_text")}function Dy(e){return e&&`${e}`.split(":")[0]==="auto"}function My(e){const t=Zi(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Zi(e){return`${e}`.replace("g_","")}function Ly(e){return{compass:Zi(e),gravityType:"direction"}}function Ny(e){return Zi(e)==="ocr_text"}function Fy(){return{gravityType:"ocr"}}function zy(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function Vy(e){const r=e.toString().split("_"),n={object:r[0]};return r.length>1&&(r[1]==="avoid"?n.avoid=!0:n.weight=+r[1]),n}function Xc(e){let t;const r=e==="auto"?new Hc:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(o=>o!=="auto"):t=r.qualifierValue.values.filter(o=>o!=="auto"),{gravityType:"auto",autoFocus:t.map(Vy)}}function By(e){const t=`${e}`.split(":").includes("auto"),r=e.qualifierValue.values,o={gravityType:"object",focusOnObjects:(t?r.slice(0,r.length-1):r).map(i=>`${i}`)};if(t){const i=r[r.length-1].values.slice(1),a=Jc().autoFocus(...i);o.fallbackGravity=Xc(a)}return o}function Wy(e){const r=e.split(":").map(n=>new Co(n));return new Yc(r)}function Uy(e){return My(e)?Ly(e):Ny(e)?Fy():Dy(e)||zy(e)?Xc(e):By(typeof e=="string"?Wy(e):e)}class ea extends Le{constructor(t,r){super(),this._weight=r,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,r){return new ea(t,r)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class Zc extends Le{constructor(t){super(),this.val=t}toString(){return this.val}}function Gy(e){return e.gravityType==="direction"}function qy(e){return e.gravityType==="ocr"}function Hy(e){return e.gravityType==="auto"}function Yy(e){const{object:t,weight:r,avoid:n}=e,o=new ea(new Co(t));return(r||r===0)&&o.weight(r),n&&o.avoid(),o}function el(e){const r=(e.autoFocus||[]).map(Yy);return Jc().autoFocus(...r)}function Qy(e){const t=(e.focusOnObjects||[]).map(n=>new Co(n)),r=Kc(...t);if(e.fallbackGravity){const n=el(e.fallbackGravity);r.fallbackGravity(n)}return r}function Ky(e){return Gy(e)?new Qc(new Zc(e.compass)):qy(e)?Kc(Iy()):Hy(e)?el(e):Qy(e)}class ta extends jy{gravity(t){this._actionModel.gravity=Uy(t);const r=typeof t=="string"?new ue("g",t):t;return this.addQualifier(r)}static fromJson(t){const r=super.fromJson.apply(this,[t]);return t.gravity&&r.gravity(Ky(t.gravity)),r}}class _n extends ue{constructor(t){super("b"),t&&this.addValue(t)}}const tl=100,Jy=0;class Xy extends _n{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",r=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${tl}:${this.brightnessLevel}`:"";return`b_blurred${t}${r}`}}var rl=Xy;class ra extends _n{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(r=>_o(r)),this}}class nl extends ra{toString(){return`
|
|
540
563
|
b_auto:border
|
|
541
564
|
${this._contrast?"_contrast":""}
|
|
542
565
|
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
543
|
-
`.replace(/\s+/g,"")}}class
|
|
566
|
+
`.replace(/\s+/g,"")}}class ol extends ra{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class il extends ol{toString(){return`
|
|
544
567
|
b_auto:border_gradient
|
|
545
568
|
${this._contrast?"_contrast":""}
|
|
546
569
|
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
547
570
|
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
548
571
|
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
549
|
-
`.replace(/\s+/g,"")}}class
|
|
572
|
+
`.replace(/\s+/g,"")}}class al extends ol{toString(){return`
|
|
550
573
|
b_auto:predominant_gradient
|
|
551
574
|
${this._contrast?"_contrast":""}
|
|
552
575
|
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
553
576
|
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
554
577
|
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
555
|
-
`.replace(/\s+/g,"")}}class
|
|
578
|
+
`.replace(/\s+/g,"")}}class sl extends ra{toString(){return`
|
|
556
579
|
b_auto:predominant
|
|
557
580
|
${this._contrast?"_contrast":""}
|
|
558
581
|
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
559
|
-
`.replace(/\s+/g,"")}}class il extends wn{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${this._prompt}`:""}`}}function al(e){return`${e}`.replace("b_","")}function Jy(){return{backgroundType:"auto"}}function Xy(e){const{intensityLevel:t,brightnessLevel:r}=e,n={backgroundType:"blurred"};return(t||t===0)&&(n.intensity=t),(r||r===0)&&(n.brightness=r),n}function ea(e){const t=e._contrast,r=e._palette,n={backgroundType:""};return t&&(n.contrast=!0),r&&(n.palette=r),n}function Zy(e){return Object.assign(Object.assign({},ea(e)),{backgroundType:"border"})}function sl(e){const t=e._gradientColors,r=`${e._gradientDirection}`,n=ea(e);return t&&(n.gradientColors=t),r&&(n.gradientDirection=r),n}function em(e){return Object.assign(Object.assign({},sl(e)),{backgroundType:"borderGradient"})}function tm(e){return{backgroundType:"color",color:al(e)}}function rm(e){return Object.assign(Object.assign({},ea(e)),{backgroundType:"predominant"})}function nm(e){return Object.assign(Object.assign({},sl(e)),{backgroundType:"predominantGradient"})}function om(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function im(e){return al(e)==="auto"?Jy():e instanceof Zc?Xy(e):e instanceof el?Zy(e):e instanceof rl?em(e):e instanceof ol?rm(e):e instanceof nl?nm(e):e instanceof il?om(e):tm(e)}function am(){return new Yi("svg")}function ta(){return new Yi("auto")}function cl(){return new el}function ll(){return new wn("auto")}function ul(){return new rl}function dl(){return new nl}function fl(){return new ol}function pl(e){return new wn(wo(e))}function sm(){return new Zc}function hl(){return new il}const gl={auto:ll,border:cl,borderGradient:ul,predominantGradient:dl,predominant:fl,color:pl,blurred:sm,generativeFill:hl};function cm(e){const{brightness:t,intensity:r}=e,n=gl.blurred();return n.brightness(t??Qy),n.intensity(r??Xc),n}function hs(e,t){const{gradientColors:r,gradientDirection:n,contrast:o,palette:i}=t;return o&&e.contrast(),i&&e.palette(...i),r&&e.gradientColors(+r),n&&e.gradientDirection(n),e}function gs(e,t){const{contrast:r,palette:n}=t;return r&&e.contrast(),n&&e.palette(...n),e}function lm(e,t){const{prompt:r}=t;return r&&e.prompt(r),e}function um(e){const{backgroundType:t}=e;switch(t){case"auto":return ll();case"blurred":return cm(e);case"border":return gs(cl(),e);case"borderGradient":return hs(ul(),e);case"predominant":return gs(fl(),e);case"predominantGradient":return hs(dl(),e);case"generativeFill":return lm(hl(),e);default:return pl(e.color)}}class dm extends Xi{background(t){return this._actionModel.background=im(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new le("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new le("y",t))}static fromJson(t){const r=super.fromJson.apply(this,[t]);return t.background&&r.background(um(t.background)),t.x&&r.offsetX(t.x),t.y&&r.offsetY(t.y),t.zoom&&r.zoom(t.zoom),r}}class fm extends Xi{x(t){return this._actionModel.x=t,this.addQualifier(new le("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new le("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new le("z",t))}static fromJson(t){const r=super.fromJson.apply(this,[t]);return t.x&&r.x(t.x),t.y&&r.y(t.y),t.zoom&&r.zoom(t.zoom),r}}class pm extends Xi{x(t){return this._actionModel.x=t,this.addQualifier(new le("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new le("y",t))}static fromJson(t){const r=super.fromJson.apply(this,[t]);return t.x&&r.x(t.x),t.y&&r.y(t.y),r}}function hm(e,t){return new fm("crop",e,t)}function gm(e,t){return new pm("fill",e,t)}function ym(e,t){return new dm("pad",e,t)}class mm extends Bc{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=Fc[t];const r=new Le([this._actionModel.level,t]);return r.setDelimiter(":"),this.addQualifier(new le("q",r))}quantization(t){this._actionModel.quantization=t;const r=new Le([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new le("q",r))}static fromJson(t){const{level:r,chromaSubSampling:n,quantization:o}=t,i=Nc[r]||r,a=new this(i);if(n){const s=ay[n.toUpperCase()];s&&a.chromaSubSampling(+s)}return o&&a.quantization(o),a}}function _o(e){return new Si("f",e)}function So(e){return new mm(e)}function vm(){return new Kc("north_east")}ds(70).color("black"),ds(40).color("white"),yy(),vy();var bm=new xo().effect(my()).delivery(So("auto")).delivery(_o(am())),wm=new xo().effect(by()).delivery(So("auto")).delivery(_o(ta())),xm=new xo().effect(gy(2e3)).delivery(So("auto")).delivery(_o(ta())),$m=new xo().resize(ym("iw_div_2").aspectRatio(1).background(gl.auto())).resize(hm(1,1).gravity(Ry(vm()))).resize(gm().height("ih").width("iw")).delivery(So("auto")).delivery(_o(ta())),ys={vectorize:bm,pixelate:wm,blur:xm,"predominant-color":$m},ms="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",vs={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},bs="?_a=",_m=function(){function e(t,r,n,o,i,a,s){var c=this;this.mimeType="video",this.mimeSubTypes=vs,this.videoElement=t,this.originalVideo=r,this.videoOptions=s,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var u=cr(r);to(t,r,o,this.htmlPluginState).then(function(){c.htmlPluginState.pluginEventSubscription.forEach(function(f){f()}),c.setVideoAttributes(i,a),c.handleSourceToVideo(u,n)})}return e.prototype.handleSourceToVideo=function(t,r){var n=this;if(r)this.generateUserSources(t,r);else{var o=["webm","mp4","ogv"];o.forEach(function(i){n.appendSourceTag(cr(t),i)})}},e.prototype.generateUserSources=function(t,r){var n=this;r.map(function(o){var i=o.type,a=o.codecs,s=o.transcode;return n.appendSourceTag(cr(t).transcode(s),i,n.buildMimeType(i,a))})},e.prototype.appendSourceTag=function(t,r,n){var o,i=document.createElement("source"),a=(o=this.videoOptions)===null||o===void 0?void 0:o.useFetchFormat;a&&t.format(r);var s=t.toURL(),c=s.split(bs),u=c[1]?"".concat(bs).concat(c[1]):"",f=a?"":".".concat(r);i.src="".concat(c[0]).concat(f).concat(u),i.type=n||"video/".concat(vs[r]||r),this.videoElement.appendChild(i)},e.prototype.buildMimeType=function(t,r){var n="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return r&&(n+="; codecs="+(Array.isArray(r)?r.join(", "):r)),n},e.prototype.setVideoAttributes=function(t,r){var n;if(t===void 0&&(t={}),r==="auto"){var o=cr(this.originalVideo);t.poster=o.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else r&&(t.poster=(n=r.toURL)===null||n===void 0?void 0:n.call(r));for(var i=0,a=Object.entries(t);i<a.length;i++){var s=a[i],c=s[0],u=s[1];u&&this.videoElement.setAttribute(c,c==="poster"?u:"")}},e.prototype.update=function(t,r,n,o,i){var a=this;if(t!==this.originalVideo){for(var s=this.videoElement.getElementsByTagName("SOURCE");s[0];)s[0].parentNode.removeChild(s[0]);to(this.videoElement,t,n,this.htmlPluginState).then(function(){a.setVideoAttributes(o,i),a.handleSourceToVideo(t,r),a.videoElement.load()})}},e}(),Sm=typeof sr=="object"&&sr&&sr.Object===Object&&sr,Cm=typeof self=="object"&&self&&self.Object===Object&&self;Sm||Cm||Function("return this")();function ra(){return typeof window<"u"}function Em(e){return e instanceof HTMLImageElement}function km(e){var t={},r=t.rootMargin,n=r===void 0?"0px":r,o=t.threshold,i=o===void 0?.1:o;return Am.bind(null,n,i)}function Am(e,t,r,n,o,i){return e===void 0&&(e="0px"),t===void 0&&(t=.1),ra()?new Promise(function(a){var s=function(){return a({lazyload:!0})},c=Om(r,s,e,t);o.cleanupCallbacks.push(function(){c(),a("canceled")})}):!1}function Tm(){return window&&"IntersectionObserver"in window}function Om(e,t,r,n){try{if(!Tm())return t(),function(){};var o=new IntersectionObserver(function(i){i.forEach(function(a){a.isIntersecting&&(o.unobserve(a.target),t())})},{rootMargin:r,threshold:n});return o.observe(e),function(){e&&o.observe(e)}}catch{t()}}function yl(e){var t={},r=t.mode,n=r===void 0?"vectorize":r;return Rm.bind(null,n)}function Rm(e,t,r,n,o,i){ys[e]||(e="vectorize");var a=ys[e].actions,s=cr(r);if(a.forEach(function(u){s.addAction(u)}),!ra())return r.transformation=s.transformation,!0;if(Em(t)){s.transformation.actions.forEach(function(u,f){u instanceof Qt&&u.getActionTag()==="responsive"&&delete s.transformation.actions[f]});var c=_i(o,{placeholder:!0});return t.src=s.toURL(c),t.onerror=function(){t.src=ms},new Promise(function(u){t.onload=function(){u()}}).then(function(){return new Promise(function(u){n.cleanupCallbacks.push(function(){t.src=ms,u("canceled")});var f=new Image;f.src=r.toURL(c),f.onload=function(){u({placeholder:!0})},f.onerror=function(){u({placeholder:!0})}})})}}function jm(e,t,r){var n=cr(t);if(e)for(var o=0;o<e.length;o++){var i=e[o](null,n);if(!i)break}return n.toURL(r?{trackedAnalytics:r}:null)}function ro(e){e.cleanupCallbacks.forEach(function(t){t()})}var Ci=function(e,t){return Ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Ci(e,t)};function ml(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ci(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var nn=function(){return nn=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},nn.apply(this,arguments)};function vl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var on={exports:{}},Se={};/*
|
|
582
|
+
`.replace(/\s+/g,"")}}class cl extends _n{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${this._prompt}`:""}`}}function ll(e){return`${e}`.replace("b_","")}function Zy(){return{backgroundType:"auto"}}function em(e){const{intensityLevel:t,brightnessLevel:r}=e,n={backgroundType:"blurred"};return(t||t===0)&&(n.intensity=t),(r||r===0)&&(n.brightness=r),n}function na(e){const t=e._contrast,r=e._palette,n={backgroundType:""};return t&&(n.contrast=!0),r&&(n.palette=r),n}function tm(e){return Object.assign(Object.assign({},na(e)),{backgroundType:"border"})}function ul(e){const t=e._gradientColors,r=`${e._gradientDirection}`,n=na(e);return t&&(n.gradientColors=t),r&&(n.gradientDirection=r),n}function rm(e){return Object.assign(Object.assign({},ul(e)),{backgroundType:"borderGradient"})}function nm(e){return{backgroundType:"color",color:ll(e)}}function om(e){return Object.assign(Object.assign({},na(e)),{backgroundType:"predominant"})}function im(e){return Object.assign(Object.assign({},ul(e)),{backgroundType:"predominantGradient"})}function am(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function sm(e){return ll(e)==="auto"?Zy():e instanceof rl?em(e):e instanceof nl?tm(e):e instanceof il?rm(e):e instanceof sl?om(e):e instanceof al?im(e):e instanceof cl?am(e):nm(e)}function cm(){return new Ji("svg")}function oa(){return new Ji("auto")}function dl(){return new nl}function fl(){return new _n("auto")}function pl(){return new il}function hl(){return new al}function gl(){return new sl}function yl(e){return new _n(_o(e))}function lm(){return new rl}function ml(){return new cl}const vl={auto:fl,border:dl,borderGradient:pl,predominantGradient:hl,predominant:gl,color:yl,blurred:lm,generativeFill:ml};function um(e){const{brightness:t,intensity:r}=e,n=vl.blurred();return n.brightness(t??Jy),n.intensity(r??tl),n}function vs(e,t){const{gradientColors:r,gradientDirection:n,contrast:o,palette:i}=t;return o&&e.contrast(),i&&e.palette(...i),r&&e.gradientColors(+r),n&&e.gradientDirection(n),e}function bs(e,t){const{contrast:r,palette:n}=t;return r&&e.contrast(),n&&e.palette(...n),e}function dm(e,t){const{prompt:r}=t;return r&&e.prompt(r),e}function fm(e){const{backgroundType:t}=e;switch(t){case"auto":return fl();case"blurred":return um(e);case"border":return bs(dl(),e);case"borderGradient":return vs(pl(),e);case"predominant":return bs(gl(),e);case"predominantGradient":return vs(hl(),e);case"generativeFill":return dm(ml(),e);default:return yl(e.color)}}class pm extends ta{background(t){return this._actionModel.background=sm(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new ue("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new ue("y",t))}static fromJson(t){const r=super.fromJson.apply(this,[t]);return t.background&&r.background(fm(t.background)),t.x&&r.offsetX(t.x),t.y&&r.offsetY(t.y),t.zoom&&r.zoom(t.zoom),r}}class hm extends ta{x(t){return this._actionModel.x=t,this.addQualifier(new ue("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new ue("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new ue("z",t))}static fromJson(t){const r=super.fromJson.apply(this,[t]);return t.x&&r.x(t.x),t.y&&r.y(t.y),t.zoom&&r.zoom(t.zoom),r}}class gm extends ta{x(t){return this._actionModel.x=t,this.addQualifier(new ue("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new ue("y",t))}static fromJson(t){const r=super.fromJson.apply(this,[t]);return t.x&&r.x(t.x),t.y&&r.y(t.y),r}}function ym(e,t){return new hm("crop",e,t)}function mm(e,t){return new gm("fill",e,t)}function vm(e,t){return new pm("pad",e,t)}class bm extends Gc{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=Bc[t];const r=new Le([this._actionModel.level,t]);return r.setDelimiter(":"),this.addQualifier(new ue("q",r))}quantization(t){this._actionModel.quantization=t;const r=new Le([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new ue("q",r))}static fromJson(t){const{level:r,chromaSubSampling:n,quantization:o}=t,i=Vc[r]||r,a=new this(i);if(n){const s=cy[n.toUpperCase()];s&&a.chromaSubSampling(+s)}return o&&a.quantization(o),a}}function Eo(e){return new Ei("f",e)}function ko(e){return new bm(e)}function wm(){return new Zc("north_east")}gs(70).color("black"),gs(40).color("white"),vy(),wy();var xm=new So().effect(by()).delivery(ko("auto")).delivery(Eo(cm())),$m=new So().effect(xy()).delivery(ko("auto")).delivery(Eo(oa())),_m=new So().effect(my(2e3)).delivery(ko("auto")).delivery(Eo(oa())),Sm=new So().resize(vm("iw_div_2").aspectRatio(1).background(vl.auto())).resize(ym(1,1).gravity(Py(wm()))).resize(mm().height("ih").width("iw")).delivery(ko("auto")).delivery(Eo(oa())),ws={vectorize:xm,pixelate:$m,blur:_m,"predominant-color":Sm},xs="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$s={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},_s="?_a=",Cm=function(){function e(t,r,n,o,i,a,s){var c=this;this.mimeType="video",this.mimeSubTypes=$s,this.videoElement=t,this.originalVideo=r,this.videoOptions=s,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var u=cr(r);oo(t,r,o,this.htmlPluginState).then(function(){c.htmlPluginState.pluginEventSubscription.forEach(function(f){f()}),c.setVideoAttributes(i,a),c.handleSourceToVideo(u,n)})}return e.prototype.handleSourceToVideo=function(t,r){var n=this;if(r)this.generateUserSources(t,r);else{var o=["webm","mp4","ogv"];o.forEach(function(i){n.appendSourceTag(cr(t),i)})}},e.prototype.generateUserSources=function(t,r){var n=this;r.map(function(o){var i=o.type,a=o.codecs,s=o.transcode;return n.appendSourceTag(cr(t).transcode(s),i,n.buildMimeType(i,a))})},e.prototype.appendSourceTag=function(t,r,n){var o,i=document.createElement("source"),a=(o=this.videoOptions)===null||o===void 0?void 0:o.useFetchFormat;a&&t.format(r);var s=t.toURL(),c=s.split(_s),u=c[1]?"".concat(_s).concat(c[1]):"",f=a?"":".".concat(r);i.src="".concat(c[0]).concat(f).concat(u),i.type=n||"video/".concat($s[r]||r),this.videoElement.appendChild(i)},e.prototype.buildMimeType=function(t,r){var n="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return r&&(n+="; codecs="+(Array.isArray(r)?r.join(", "):r)),n},e.prototype.setVideoAttributes=function(t,r){var n;if(t===void 0&&(t={}),r==="auto"){var o=cr(this.originalVideo);t.poster=o.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else r&&(t.poster=(n=r.toURL)===null||n===void 0?void 0:n.call(r));for(var i=0,a=Object.entries(t);i<a.length;i++){var s=a[i],c=s[0],u=s[1];u&&this.videoElement.setAttribute(c,c==="poster"?u:"")}},e.prototype.update=function(t,r,n,o,i){var a=this;if(t!==this.originalVideo){for(var s=this.videoElement.getElementsByTagName("SOURCE");s[0];)s[0].parentNode.removeChild(s[0]);oo(this.videoElement,t,n,this.htmlPluginState).then(function(){a.setVideoAttributes(o,i),a.handleSourceToVideo(t,r),a.videoElement.load()})}},e}(),Em=typeof sr=="object"&&sr&&sr.Object===Object&&sr,km=typeof self=="object"&&self&&self.Object===Object&&self;Em||km||Function("return this")();function ia(){return typeof window<"u"}function Am(e){return e instanceof HTMLImageElement}function Tm(e){var t={},r=t.rootMargin,n=r===void 0?"0px":r,o=t.threshold,i=o===void 0?.1:o;return Om.bind(null,n,i)}function Om(e,t,r,n,o,i){return e===void 0&&(e="0px"),t===void 0&&(t=.1),ia()?new Promise(function(a){var s=function(){return a({lazyload:!0})},c=jm(r,s,e,t);o.cleanupCallbacks.push(function(){c(),a("canceled")})}):!1}function Rm(){return window&&"IntersectionObserver"in window}function jm(e,t,r,n){try{if(!Rm())return t(),function(){};var o=new IntersectionObserver(function(i){i.forEach(function(a){a.isIntersecting&&(o.unobserve(a.target),t())})},{rootMargin:r,threshold:n});return o.observe(e),function(){e&&o.observe(e)}}catch{t()}}function bl(e){var t={},r=t.mode,n=r===void 0?"vectorize":r;return Pm.bind(null,n)}function Pm(e,t,r,n,o,i){ws[e]||(e="vectorize");var a=ws[e].actions,s=cr(r);if(a.forEach(function(u){s.addAction(u)}),!ia())return r.transformation=s.transformation,!0;if(Am(t)){s.transformation.actions.forEach(function(u,f){u instanceof Qt&&u.getActionTag()==="responsive"&&delete s.transformation.actions[f]});var c=Ci(o,{placeholder:!0});return t.src=s.toURL(c),t.onerror=function(){t.src=xs},new Promise(function(u){t.onload=function(){u()}}).then(function(){return new Promise(function(u){n.cleanupCallbacks.push(function(){t.src=xs,u("canceled")});var f=new Image;f.src=r.toURL(c),f.onload=function(){u({placeholder:!0})},f.onerror=function(){u({placeholder:!0})}})})}}function Im(e,t,r){var n=cr(t);if(e)for(var o=0;o<e.length;o++){var i=e[o](null,n);if(!i)break}return n.toURL(r?{trackedAnalytics:r}:null)}function io(e){e.cleanupCallbacks.forEach(function(t){t()})}var ki=function(e,t){return ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},ki(e,t)};function wl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ki(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var on=function(){return on=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},on.apply(this,arguments)};function xl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var an={exports:{}},Se={};/*
|
|
560
583
|
object-assign
|
|
561
584
|
(c) Sindre Sorhus
|
|
562
585
|
@license MIT
|
|
563
|
-
*/var
|
|
586
|
+
*/var Ss=Object.getOwnPropertySymbols,Dm=Object.prototype.hasOwnProperty,Mm=Object.prototype.propertyIsEnumerable;function Lm(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Nm(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var $l=Nm()?Object.assign:function(e,t){for(var r,n=Lm(e),o,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var a in r)Dm.call(r,a)&&(n[a]=r[a]);if(Ss){o=Ss(r);for(var s=0;s<o.length;s++)Mm.call(r,o[s])&&(n[o[s]]=r[o[s]])}}return n};/** @license React v16.14.0
|
|
564
587
|
* react.production.min.js
|
|
565
588
|
*
|
|
566
589
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
567
590
|
*
|
|
568
591
|
* This source code is licensed under the MIT license found in the
|
|
569
592
|
* LICENSE file in the root directory of this source tree.
|
|
570
|
-
*/var
|
|
593
|
+
*/var aa=$l,Kt=typeof Symbol=="function"&&Symbol.for,Sn=Kt?Symbol.for("react.element"):60103,Fm=Kt?Symbol.for("react.portal"):60106,zm=Kt?Symbol.for("react.fragment"):60107,Vm=Kt?Symbol.for("react.strict_mode"):60108,Bm=Kt?Symbol.for("react.profiler"):60114,Wm=Kt?Symbol.for("react.provider"):60109,Um=Kt?Symbol.for("react.context"):60110,Gm=Kt?Symbol.for("react.forward_ref"):60112,qm=Kt?Symbol.for("react.suspense"):60113,Hm=Kt?Symbol.for("react.memo"):60115,Ym=Kt?Symbol.for("react.lazy"):60116,Cs=typeof Symbol=="function"&&Symbol.iterator;function Cn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var _l={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sl={};function qr(e,t,r){this.props=e,this.context=t,this.refs=Sl,this.updater=r||_l}qr.prototype.isReactComponent={};qr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Cn(85));this.updater.enqueueSetState(this,e,t,"setState")};qr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cl(){}Cl.prototype=qr.prototype;function sa(e,t,r){this.props=e,this.context=t,this.refs=Sl,this.updater=r||_l}var ca=sa.prototype=new Cl;ca.constructor=sa;aa(ca,qr.prototype);ca.isPureReactComponent=!0;var la={current:null},El=Object.prototype.hasOwnProperty,kl={key:!0,ref:!0,__self:!0,__source:!0};function Al(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)El.call(t,n)&&!kl.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return{$$typeof:Sn,type:e,key:i,ref:a,props:o,_owner:la.current}}function Qm(e,t){return{$$typeof:Sn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ua(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sn}function Km(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(r){return t[r]})}var Tl=/\/+/g,ao=[];function Ol(e,t,r,n){if(ao.length){var o=ao.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function Rl(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>ao.length&&ao.push(e)}function Ai(e,t,r,n){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Sn:case Fm:i=!0}}if(i)return r(n,e,t===""?"."+Xo(e,0):t),1;if(i=0,t=t===""?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){o=e[a];var s=t+Xo(o,a);i+=Ai(o,s,r,n)}else if(e===null||typeof e!="object"?s=null:(s=Cs&&e[Cs]||e["@@iterator"],s=typeof s=="function"?s:null),typeof s=="function")for(e=s.call(e),a=0;!(o=e.next()).done;)o=o.value,s=t+Xo(o,a++),i+=Ai(o,s,r,n);else if(o==="object")throw r=""+e,Error(Cn(31,r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return i}function Ti(e,t,r){return e==null?0:Ai(e,"",t,r)}function Xo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Km(e.key):t.toString(36)}function Jm(e,t){e.func.call(e.context,t,e.count++)}function Xm(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Oi(e,n,r,function(i){return i}):e!=null&&(ua(e)&&(e=Qm(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(Tl,"$&/")+"/")+r)),n.push(e))}function Oi(e,t,r,n,o){var i="";r!=null&&(i=(""+r).replace(Tl,"$&/")+"/"),t=Ol(t,i,n,o),Ti(e,Xm,t),Rl(t)}var jl={current:null};function ir(){var e=jl.current;if(e===null)throw Error(Cn(321));return e}var Zm={ReactCurrentDispatcher:jl,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:la,IsSomeRendererActing:{current:!1},assign:aa};Se.Children={map:function(e,t,r){if(e==null)return e;var n=[];return Oi(e,n,null,t,r),n},forEach:function(e,t,r){if(e==null)return e;t=Ol(null,null,t,r),Ti(e,Jm,t),Rl(t)},count:function(e){return Ti(e,function(){return null},null)},toArray:function(e){var t=[];return Oi(e,t,null,function(r){return r}),t},only:function(e){if(!ua(e))throw Error(Cn(143));return e}};Se.Component=qr;Se.Fragment=zm;Se.Profiler=Bm;Se.PureComponent=sa;Se.StrictMode=Vm;Se.Suspense=qm;Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zm;Se.cloneElement=function(e,t,r){if(e==null)throw Error(Cn(267,e));var n=aa({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=la.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)El.call(t,c)&&!kl.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:Sn,type:e.type,key:o,ref:i,props:n,_owner:a}};Se.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Um,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Wm,_context:e},e.Consumer=e};Se.createElement=Al;Se.createFactory=function(e){var t=Al.bind(null,e);return t.type=e,t};Se.createRef=function(){return{current:null}};Se.forwardRef=function(e){return{$$typeof:Gm,render:e}};Se.isValidElement=ua;Se.lazy=function(e){return{$$typeof:Ym,_ctor:e,_status:-1,_result:null}};Se.memo=function(e,t){return{$$typeof:Hm,type:e,compare:t===void 0?null:t}};Se.useCallback=function(e,t){return ir().useCallback(e,t)};Se.useContext=function(e,t){return ir().useContext(e,t)};Se.useDebugValue=function(){};Se.useEffect=function(e,t){return ir().useEffect(e,t)};Se.useImperativeHandle=function(e,t,r){return ir().useImperativeHandle(e,t,r)};Se.useLayoutEffect=function(e,t){return ir().useLayoutEffect(e,t)};Se.useMemo=function(e,t){return ir().useMemo(e,t)};Se.useReducer=function(e,t,r){return ir().useReducer(e,t,r)};Se.useRef=function(e){return ir().useRef(e)};Se.useState=function(e){return ir().useState(e)};Se.version="16.14.0";var _e={},ev="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",tv=ev,rv=Function.call.bind(Object.prototype.hasOwnProperty),Ri=function(){};if(process.env.NODE_ENV!=="production"){var nv=tv,ji={},ov=rv;Ri=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function Pl(e,t,r,n,o){if(process.env.NODE_ENV!=="production"){for(var i in e)if(ov(e,i)){var a;try{if(typeof e[i]!="function"){var s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[i](t,i,n,r,null,nv)}catch(u){a=u}if(a&&!(a instanceof Error)&&Ri((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in ji)){ji[a.message]=!0;var c=o?o():"";Ri("Failed "+r+" type: "+a.message+(c??""))}}}}Pl.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(ji={})};var iv=Pl;/** @license React v16.14.0
|
|
571
594
|
* react.development.js
|
|
572
595
|
*
|
|
573
596
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
574
597
|
*
|
|
575
598
|
* This source code is licensed under the MIT license found in the
|
|
576
599
|
* LICENSE file in the root directory of this source tree.
|
|
577
|
-
*/process.env.NODE_ENV!=="production"&&function(){var e
|
|
578
|
-
in `+(l||"Unknown")+R}var
|
|
579
|
-
in`)===0;if(!R){var F=ye.ReactDebugCurrentFrame,he=F.getStackAddendum();he!==""&&(h+="%s",x=x.concat([he]))}var Z=x.map(function(ze){return""+ze});Z.unshift("Warning: "+h),Function.prototype.apply.call(console[l],console,Z);try{var ne=0,Ve="Warning: "+h.replace(/%s/g,function(){return x[ne++]});throw new Error(Ve)}catch{}}}var tt={};function qe(l,h){{var x=l.constructor,R=x&&(x.displayName||x.name)||"ReactClass",F=R+"."+h;if(tt[F])return;re("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",h,R),tt[F]=!0}}var Ge={isMounted:function(l){return!1},enqueueForceUpdate:function(l,h,x){qe(l,"forceUpdate")},enqueueReplaceState:function(l,h,x,R){qe(l,"replaceState")},enqueueSetState:function(l,h,x,R){qe(l,"setState")}},be={};Object.freeze(be);function Ce(l,h,x){this.props=l,this.context=h,this.refs=be,this.updater=x||Ge}Ce.prototype.isReactComponent={},Ce.prototype.setState=function(l,h){if(!(typeof l=="object"||typeof l=="function"||l==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,l,h,"setState")},Ce.prototype.forceUpdate=function(l){this.updater.enqueueForceUpdate(this,l,"forceUpdate")};{var Ae={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Be=function(l,h){Object.defineProperty(Ce.prototype,l,{get:function(){$e("%s(...) is deprecated in plain JavaScript React classes. %s",h[0],h[1])}})};for(var Ie in Ae)Ae.hasOwnProperty(Ie)&&Be(Ie,Ae[Ie])}function gt(){}gt.prototype=Ce.prototype;function It(l,h,x){this.props=l,this.context=h,this.refs=be,this.updater=x||Ge}var Te=It.prototype=new gt;Te.constructor=It,e(Te,Ce.prototype),Te.isPureReactComponent=!0;function yt(){var l={current:null};return Object.seal(l),l}var Ke=Object.prototype.hasOwnProperty,mt={key:!0,ref:!0,__self:!0,__source:!0},we,vt,bt;bt={};function wt(l){if(Ke.call(l,"ref")){var h=Object.getOwnPropertyDescriptor(l,"ref").get;if(h&&h.isReactWarning)return!1}return l.ref!==void 0}function jt(l){if(Ke.call(l,"key")){var h=Object.getOwnPropertyDescriptor(l,"key").get;if(h&&h.isReactWarning)return!1}return l.key!==void 0}function rt(l,h){var x=function(){we||(we=!0,re("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",h))};x.isReactWarning=!0,Object.defineProperty(l,"key",{get:x,configurable:!0})}function ct(l,h){var x=function(){vt||(vt=!0,re("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",h))};x.isReactWarning=!0,Object.defineProperty(l,"ref",{get:x,configurable:!0})}function xt(l){if(typeof l.ref=="string"&&Y.current&&l.__self&&Y.current.stateNode!==l.__self){var h=z(Y.current.type);bt[h]||(re('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',z(Y.current.type),l.ref),bt[h]=!0)}}var Je=function(l,h,x,R,F,he,Z){var ne={$$typeof:o,type:l,key:h,ref:x,props:Z,_owner:he};return ne._store={},Object.defineProperty(ne._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ne,"_self",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.defineProperty(ne,"_source",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.freeze&&(Object.freeze(ne.props),Object.freeze(ne)),ne};function Et(l,h,x){var R,F={},he=null,Z=null,ne=null,Ve=null;if(h!=null){wt(h)&&(Z=h.ref,xt(h)),jt(h)&&(he=""+h.key),ne=h.__self===void 0?null:h.__self,Ve=h.__source===void 0?null:h.__source;for(R in h)Ke.call(h,R)&&!mt.hasOwnProperty(R)&&(F[R]=h[R])}var ze=arguments.length-2;if(ze===1)F.children=x;else if(ze>1){for(var Tt=Array(ze),Ct=0;Ct<ze;Ct++)Tt[Ct]=arguments[Ct+2];Object.freeze&&Object.freeze(Tt),F.children=Tt}if(l&&l.defaultProps){var tr=l.defaultProps;for(R in tr)F[R]===void 0&&(F[R]=tr[R])}if(he||Z){var Nt=typeof l=="function"?l.displayName||l.name||"Unknown":l;he&&rt(F,Nt),Z&&ct(F,Nt)}return Je(l,he,Z,ne,Ve,Y.current,F)}function kt(l,h){var x=Je(l.type,h,l.ref,l._self,l._source,l._owner,l.props);return x}function Mt(l,h,x){if(l==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+l+".");var R,F=e({},l.props),he=l.key,Z=l.ref,ne=l._self,Ve=l._source,ze=l._owner;if(h!=null){wt(h)&&(Z=h.ref,ze=Y.current),jt(h)&&(he=""+h.key);var Tt;l.type&&l.type.defaultProps&&(Tt=l.type.defaultProps);for(R in h)Ke.call(h,R)&&!mt.hasOwnProperty(R)&&(h[R]===void 0&&Tt!==void 0?F[R]=Tt[R]:F[R]=h[R])}var Ct=arguments.length-2;if(Ct===1)F.children=x;else if(Ct>1){for(var tr=Array(Ct),Nt=0;Nt<Ct;Nt++)tr[Nt]=arguments[Nt+2];F.children=tr}return Je(l.type,he,Z,ne,Ve,ze,F)}function He(l){return typeof l=="object"&&l!==null&&l.$$typeof===o}var Lt=".",nt=":";function Ee(l){var h=/[=:]/g,x={"=":"=0",":":"=2"},R=(""+l).replace(h,function(F){return x[F]});return"$"+R}var Wt=!1,Ut=/\/+/g;function $t(l){return(""+l).replace(Ut,"$&/")}var _t=10,Ye=[];function lt(l,h,x,R){if(Ye.length){var F=Ye.pop();return F.result=l,F.keyPrefix=h,F.func=x,F.context=R,F.count=0,F}else return{result:l,keyPrefix:h,func:x,context:R,count:0}}function We(l){l.result=null,l.keyPrefix=null,l.func=null,l.context=null,l.count=0,Ye.length<_t&&Ye.push(l)}function Qe(l,h,x,R){var F=typeof l;(F==="undefined"||F==="boolean")&&(l=null);var he=!1;if(l===null)he=!0;else switch(F){case"string":case"number":he=!0;break;case"object":switch(l.$$typeof){case o:case i:he=!0}}if(he)return x(R,l,h===""?Lt+ke(l,0):h),1;var Z,ne,Ve=0,ze=h===""?Lt:h+nt;if(Array.isArray(l))for(var Tt=0;Tt<l.length;Tt++)Z=l[Tt],ne=ze+ke(Z,Tt),Ve+=Qe(Z,ne,x,R);else{var Ct=T(l);if(typeof Ct=="function"){Ct===l.entries&&(Wt||$e("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),Wt=!0);for(var tr=Ct.call(l),Nt,No=0;!(Nt=tr.next()).done;)Z=Nt.value,ne=ze+ke(Z,No++),Ve+=Qe(Z,ne,x,R)}else if(F==="object"){var An="";An=" If you meant to render a collection of children, use an array instead."+te.getStackAddendum();var Kr=""+l;throw Error("Objects are not valid as a React child (found: "+(Kr==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":Kr)+")."+An)}}return Ve}function At(l,h,x){return l==null?0:Qe(l,"",h,x)}function ke(l,h){return typeof l=="object"&&l!==null&&l.key!=null?Ee(l.key):h.toString(36)}function Xe(l,h,x){var R=l.func,F=l.context;R.call(F,h,l.count++)}function q(l,h,x){if(l==null)return l;var R=lt(null,null,h,x);At(l,Xe,R),We(R)}function ue(l,h,x){var R=l.result,F=l.keyPrefix,he=l.func,Z=l.context,ne=he.call(Z,h,l.count++);Array.isArray(ne)?Me(ne,R,x,function(Ve){return Ve}):ne!=null&&(He(ne)&&(ne=kt(ne,F+(ne.key&&(!h||h.key!==ne.key)?$t(ne.key)+"/":"")+x)),R.push(ne))}function Me(l,h,x,R,F){var he="";x!=null&&(he=$t(x)+"/");var Z=lt(h,he,R,F);At(l,ue,Z),We(Z)}function St(l,h,x){if(l==null)return l;var R=[];return Me(l,R,null,h,x),R}function L(l){return At(l,function(){return null},null)}function Q(l){var h=[];return Me(l,h,null,function(x){return x}),h}function X(l){if(!He(l))throw Error("React.Children.only expected to receive a single React element child.");return l}function Oe(l,h){h===void 0?h=null:h!==null&&typeof h!="function"&&re("createContext: Expected the optional second argument to be a function. Instead received: %s",h);var x={$$typeof:f,_calculateChangedBits:h,_currentValue:l,_currentValue2:l,_threadCount:0,Provider:null,Consumer:null};x.Provider={$$typeof:u,_context:x};var R=!1,F=!1;{var he={$$typeof:f,_context:x,_calculateChangedBits:x._calculateChangedBits};Object.defineProperties(he,{Provider:{get:function(){return F||(F=!0,re("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),x.Provider},set:function(Z){x.Provider=Z}},_currentValue:{get:function(){return x._currentValue},set:function(Z){x._currentValue=Z}},_currentValue2:{get:function(){return x._currentValue2},set:function(Z){x._currentValue2=Z}},_threadCount:{get:function(){return x._threadCount},set:function(Z){x._threadCount=Z}},Consumer:{get:function(){return R||(R=!0,re("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),x.Consumer}}}),x.Consumer=he}return x._currentRenderer=null,x._currentRenderer2=null,x}function Ne(l){var h={$$typeof:O,_ctor:l,_status:-1,_result:null};{var x,R;Object.defineProperties(h,{defaultProps:{configurable:!0,get:function(){return x},set:function(F){re("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),x=F,Object.defineProperty(h,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return R},set:function(F){re("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),R=F,Object.defineProperty(h,"propTypes",{enumerable:!0})}}})}return h}function ut(l){return l!=null&&l.$$typeof===_?re("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof l!="function"?re("forwardRef requires a render function but was given %s.",l===null?"null":typeof l):l.length!==0&&l.length!==2&&re("forwardRef render functions accept exactly two parameters: props and ref. %s",l.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),l!=null&&(l.defaultProps!=null||l.propTypes!=null)&&re("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:m,render:l}}function Re(l){return typeof l=="string"||typeof l=="function"||l===a||l===y||l===c||l===s||l===v||l===w||typeof l=="object"&&l!==null&&(l.$$typeof===O||l.$$typeof===_||l.$$typeof===u||l.$$typeof===f||l.$$typeof===m||l.$$typeof===C||l.$$typeof===P||l.$$typeof===I||l.$$typeof===$)}function p(l,h){return Re(l)||re("memo: The first argument must be a component. Instead received: %s",l===null?"null":typeof l),{$$typeof:_,type:l,compare:h===void 0?null:h}}function E(){var l=V.current;if(l===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
600
|
+
*/process.env.NODE_ENV!=="production"&&function(){var e=$l,t=iv,r="16.14.0",n=typeof Symbol=="function"&&Symbol.for,o=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,y=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,g=n?Symbol.for("react.suspense"):60113,x=n?Symbol.for("react.suspense_list"):60120,S=n?Symbol.for("react.memo"):60115,k=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.block"):60121,C=n?Symbol.for("react.fundamental"):60117,P=n?Symbol.for("react.responder"):60118,M=n?Symbol.for("react.scope"):60119,D=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function j(l){if(l===null||typeof l!="object")return null;var m=D&&l[D]||l[A];return typeof m=="function"?m:null}var z={current:null},H={suspense:null},V={current:null},ie=/^(.*)[\\\/]/;function he(l,m,$){var R="";if(m){var F=m.fileName,ge=F.replace(ie,"");if(/^index\./.test(ge)){var ee=F.match(ie);if(ee){var oe=ee[1];if(oe){var Ve=oe.replace(ie,"");ge=Ve+"/"+ge}}}R=" (at "+ge+":"+m.lineNumber+")"}else $&&(R=" (created by "+$+")");return`
|
|
601
|
+
in `+(l||"Unknown")+R}var ae=1;function N(l){return l._status===ae?l._result:null}function J(l,m,$){var R=m.displayName||m.name||"";return l.displayName||(R!==""?$+"("+R+")":$)}function B(l){if(l==null)return null;if(typeof l.tag=="number"&&ne("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case a:return"Fragment";case i:return"Portal";case c:return"Profiler";case s:return"StrictMode";case g:return"Suspense";case x:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case f:return"Context.Consumer";case u:return"Context.Provider";case h:return J(l,l.render,"ForwardRef");case S:return B(l.type);case _:return B(l.render);case k:{var m=l,$=N(m);if($)return B($);break}}return null}var re={},W=null;function se(l){W=l}re.getCurrentStack=null,re.getStackAddendum=function(){var l="";if(W){var m=B(W.type),$=W._owner;l+=he(m,W._source,$&&B($.type))}var R=re.getCurrentStack;return R&&(l+=R()||""),l};var Y={current:!1},me={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:H,ReactCurrentOwner:V,IsSomeRendererActing:Y,assign:e};e(me,{ReactDebugCurrentFrame:re,ReactComponentTreeHook:{}});function $e(l){{for(var m=arguments.length,$=new Array(m>1?m-1:0),R=1;R<m;R++)$[R-1]=arguments[R];lt("warn",l,$)}}function ne(l){{for(var m=arguments.length,$=new Array(m>1?m-1:0),R=1;R<m;R++)$[R-1]=arguments[R];lt("error",l,$)}}function lt(l,m,$){{var R=$.length>0&&typeof $[$.length-1]=="string"&&$[$.length-1].indexOf(`
|
|
602
|
+
in`)===0;if(!R){var F=me.ReactDebugCurrentFrame,ge=F.getStackAddendum();ge!==""&&(m+="%s",$=$.concat([ge]))}var ee=$.map(function(Be){return""+Be});ee.unshift("Warning: "+m),Function.prototype.apply.call(console[l],console,ee);try{var oe=0,Ve="Warning: "+m.replace(/%s/g,function(){return $[oe++]});throw new Error(Ve)}catch{}}}var ot={};function qe(l,m){{var $=l.constructor,R=$&&($.displayName||$.name)||"ReactClass",F=R+"."+m;if(ot[F])return;ne("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",m,R),ot[F]=!0}}var He={isMounted:function(l){return!1},enqueueForceUpdate:function(l,m,$){qe(l,"forceUpdate")},enqueueReplaceState:function(l,m,$,R){qe(l,"replaceState")},enqueueSetState:function(l,m,$,R){qe(l,"setState")}},be={};Object.freeze(be);function Ce(l,m,$){this.props=l,this.context=m,this.refs=be,this.updater=$||He}Ce.prototype.isReactComponent={},Ce.prototype.setState=function(l,m){if(!(typeof l=="object"||typeof l=="function"||l==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,l,m,"setState")},Ce.prototype.forceUpdate=function(l){this.updater.enqueueForceUpdate(this,l,"forceUpdate")};{var Ae={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},We=function(l,m){Object.defineProperty(Ce.prototype,l,{get:function(){$e("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var De in Ae)Ae.hasOwnProperty(De)&&We(De,Ae[De])}function yt(){}yt.prototype=Ce.prototype;function Dt(l,m,$){this.props=l,this.context=m,this.refs=be,this.updater=$||He}var Te=Dt.prototype=new yt;Te.constructor=Dt,e(Te,Ce.prototype),Te.isPureReactComponent=!0;function mt(){var l={current:null};return Object.seal(l),l}var Xe=Object.prototype.hasOwnProperty,vt={key:!0,ref:!0,__self:!0,__source:!0},we,bt,wt;wt={};function xt(l){if(Xe.call(l,"ref")){var m=Object.getOwnPropertyDescriptor(l,"ref").get;if(m&&m.isReactWarning)return!1}return l.ref!==void 0}function Pt(l){if(Xe.call(l,"key")){var m=Object.getOwnPropertyDescriptor(l,"key").get;if(m&&m.isReactWarning)return!1}return l.key!==void 0}function it(l,m){var $=function(){we||(we=!0,ne("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",m))};$.isReactWarning=!0,Object.defineProperty(l,"key",{get:$,configurable:!0})}function ut(l,m){var $=function(){bt||(bt=!0,ne("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",m))};$.isReactWarning=!0,Object.defineProperty(l,"ref",{get:$,configurable:!0})}function $t(l){if(typeof l.ref=="string"&&V.current&&l.__self&&V.current.stateNode!==l.__self){var m=B(V.current.type);wt[m]||(ne('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',B(V.current.type),l.ref),wt[m]=!0)}}var Ze=function(l,m,$,R,F,ge,ee){var oe={$$typeof:o,type:l,key:m,ref:$,props:ee,_owner:ge};return oe._store={},Object.defineProperty(oe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(oe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.defineProperty(oe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.freeze&&(Object.freeze(oe.props),Object.freeze(oe)),oe};function kt(l,m,$){var R,F={},ge=null,ee=null,oe=null,Ve=null;if(m!=null){xt(m)&&(ee=m.ref,$t(m)),Pt(m)&&(ge=""+m.key),oe=m.__self===void 0?null:m.__self,Ve=m.__source===void 0?null:m.__source;for(R in m)Xe.call(m,R)&&!vt.hasOwnProperty(R)&&(F[R]=m[R])}var Be=arguments.length-2;if(Be===1)F.children=$;else if(Be>1){for(var Ot=Array(Be),Et=0;Et<Be;Et++)Ot[Et]=arguments[Et+2];Object.freeze&&Object.freeze(Ot),F.children=Ot}if(l&&l.defaultProps){var tr=l.defaultProps;for(R in tr)F[R]===void 0&&(F[R]=tr[R])}if(ge||ee){var Nt=typeof l=="function"?l.displayName||l.name||"Unknown":l;ge&&it(F,Nt),ee&&ut(F,Nt)}return Ze(l,ge,ee,oe,Ve,V.current,F)}function At(l,m){var $=Ze(l.type,m,l.ref,l._self,l._source,l._owner,l.props);return $}function Mt(l,m,$){if(l==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+l+".");var R,F=e({},l.props),ge=l.key,ee=l.ref,oe=l._self,Ve=l._source,Be=l._owner;if(m!=null){xt(m)&&(ee=m.ref,Be=V.current),Pt(m)&&(ge=""+m.key);var Ot;l.type&&l.type.defaultProps&&(Ot=l.type.defaultProps);for(R in m)Xe.call(m,R)&&!vt.hasOwnProperty(R)&&(m[R]===void 0&&Ot!==void 0?F[R]=Ot[R]:F[R]=m[R])}var Et=arguments.length-2;if(Et===1)F.children=$;else if(Et>1){for(var tr=Array(Et),Nt=0;Nt<Et;Nt++)tr[Nt]=arguments[Nt+2];F.children=tr}return Ze(l.type,ge,ee,oe,Ve,Be,F)}function Ye(l){return typeof l=="object"&&l!==null&&l.$$typeof===o}var Lt=".",at=":";function Ee(l){var m=/[=:]/g,$={"=":"=0",":":"=2"},R=(""+l).replace(m,function(F){return $[F]});return"$"+R}var Ut=!1,Gt=/\/+/g;function _t(l){return(""+l).replace(Gt,"$&/")}var St=10,Qe=[];function dt(l,m,$,R){if(Qe.length){var F=Qe.pop();return F.result=l,F.keyPrefix=m,F.func=$,F.context=R,F.count=0,F}else return{result:l,keyPrefix:m,func:$,context:R,count:0}}function Ue(l){l.result=null,l.keyPrefix=null,l.func=null,l.context=null,l.count=0,Qe.length<St&&Qe.push(l)}function Ke(l,m,$,R){var F=typeof l;(F==="undefined"||F==="boolean")&&(l=null);var ge=!1;if(l===null)ge=!0;else switch(F){case"string":case"number":ge=!0;break;case"object":switch(l.$$typeof){case o:case i:ge=!0}}if(ge)return $(R,l,m===""?Lt+ke(l,0):m),1;var ee,oe,Ve=0,Be=m===""?Lt:m+at;if(Array.isArray(l))for(var Ot=0;Ot<l.length;Ot++)ee=l[Ot],oe=Be+ke(ee,Ot),Ve+=Ke(ee,oe,$,R);else{var Et=j(l);if(typeof Et=="function"){Et===l.entries&&(Ut||$e("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),Ut=!0);for(var tr=Et.call(l),Nt,zo=0;!(Nt=tr.next()).done;)ee=Nt.value,oe=Be+ke(ee,zo++),Ve+=Ke(ee,oe,$,R)}else if(F==="object"){var jn="";jn=" If you meant to render a collection of children, use an array instead."+re.getStackAddendum();var Kr=""+l;throw Error("Objects are not valid as a React child (found: "+(Kr==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":Kr)+")."+jn)}}return Ve}function Tt(l,m,$){return l==null?0:Ke(l,"",m,$)}function ke(l,m){return typeof l=="object"&&l!==null&&l.key!=null?Ee(l.key):m.toString(36)}function et(l,m,$){var R=l.func,F=l.context;R.call(F,m,l.count++)}function G(l,m,$){if(l==null)return l;var R=dt(null,null,m,$);Tt(l,et,R),Ue(R)}function de(l,m,$){var R=l.result,F=l.keyPrefix,ge=l.func,ee=l.context,oe=ge.call(ee,m,l.count++);Array.isArray(oe)?Me(oe,R,$,function(Ve){return Ve}):oe!=null&&(Ye(oe)&&(oe=At(oe,F+(oe.key&&(!m||m.key!==oe.key)?_t(oe.key)+"/":"")+$)),R.push(oe))}function Me(l,m,$,R,F){var ge="";$!=null&&(ge=_t($)+"/");var ee=dt(m,ge,R,F);Tt(l,de,ee),Ue(ee)}function Ct(l,m,$){if(l==null)return l;var R=[];return Me(l,R,null,m,$),R}function L(l){return Tt(l,function(){return null},null)}function Q(l){var m=[];return Me(l,m,null,function($){return $}),m}function Z(l){if(!Ye(l))throw Error("React.Children.only expected to receive a single React element child.");return l}function Oe(l,m){m===void 0?m=null:m!==null&&typeof m!="function"&&ne("createContext: Expected the optional second argument to be a function. Instead received: %s",m);var $={$$typeof:f,_calculateChangedBits:m,_currentValue:l,_currentValue2:l,_threadCount:0,Provider:null,Consumer:null};$.Provider={$$typeof:u,_context:$};var R=!1,F=!1;{var ge={$$typeof:f,_context:$,_calculateChangedBits:$._calculateChangedBits};Object.defineProperties(ge,{Provider:{get:function(){return F||(F=!0,ne("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),$.Provider},set:function(ee){$.Provider=ee}},_currentValue:{get:function(){return $._currentValue},set:function(ee){$._currentValue=ee}},_currentValue2:{get:function(){return $._currentValue2},set:function(ee){$._currentValue2=ee}},_threadCount:{get:function(){return $._threadCount},set:function(ee){$._threadCount=ee}},Consumer:{get:function(){return R||(R=!0,ne("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),$.Consumer}}}),$.Consumer=ge}return $._currentRenderer=null,$._currentRenderer2=null,$}function Ne(l){var m={$$typeof:k,_ctor:l,_status:-1,_result:null};{var $,R;Object.defineProperties(m,{defaultProps:{configurable:!0,get:function(){return $},set:function(F){ne("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),$=F,Object.defineProperty(m,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return R},set:function(F){ne("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),R=F,Object.defineProperty(m,"propTypes",{enumerable:!0})}}})}return m}function ft(l){return l!=null&&l.$$typeof===S?ne("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof l!="function"?ne("forwardRef requires a render function but was given %s.",l===null?"null":typeof l):l.length!==0&&l.length!==2&&ne("forwardRef render functions accept exactly two parameters: props and ref. %s",l.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),l!=null&&(l.defaultProps!=null||l.propTypes!=null)&&ne("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:h,render:l}}function Re(l){return typeof l=="string"||typeof l=="function"||l===a||l===y||l===c||l===s||l===g||l===x||typeof l=="object"&&l!==null&&(l.$$typeof===k||l.$$typeof===S||l.$$typeof===u||l.$$typeof===f||l.$$typeof===h||l.$$typeof===C||l.$$typeof===P||l.$$typeof===M||l.$$typeof===_)}function p(l,m){return Re(l)||ne("memo: The first argument must be a component. Instead received: %s",l===null?"null":typeof l),{$$typeof:S,type:l,compare:m===void 0?null:m}}function E(){var l=z.current;if(l===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
580
603
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
581
604
|
2. You might be breaking the Rules of Hooks
|
|
582
605
|
3. You might have more than one copy of React in the same app
|
|
583
|
-
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return l}function
|
|
606
|
+
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return l}function I(l,m){var $=E();if(m!==void 0&&ne("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",m,typeof m=="number"&&Array.isArray(arguments[2])?`
|
|
584
607
|
|
|
585
|
-
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),l._context!==void 0){var R=l._context;R.Consumer===l?
|
|
608
|
+
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),l._context!==void 0){var R=l._context;R.Consumer===l?ne("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):R.Provider===l&&ne("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return $.useContext(l,m)}function q(l){var m=E();return m.useState(l)}function ye(l,m,$){var R=E();return R.useReducer(l,m,$)}function pe(l){var m=E();return m.useRef(l)}function le(l,m){var $=E();return $.useEffect(l,m)}function ce(l,m){var $=E();return $.useLayoutEffect(l,m)}function Fe(l,m){var $=E();return $.useCallback(l,m)}function K(l,m){var $=E();return $.useMemo(l,m)}function ve(l,m,$){var R=E();return R.useImperativeHandle(l,m,$)}function je(l,m){{var $=E();return $.useDebugValue(l,m)}}var tt;tt=!1;function er(){if(V.current){var l=B(V.current.type);if(l)return`
|
|
586
609
|
|
|
587
|
-
Check the render method of \``+l+"`."}return""}function
|
|
610
|
+
Check the render method of \``+l+"`."}return""}function st(l){if(l!==void 0){var m=l.fileName.replace(/^.*[\\\/]/,""),$=l.lineNumber;return`
|
|
588
611
|
|
|
589
|
-
Check your code at `+
|
|
612
|
+
Check your code at `+m+":"+$+"."}return""}function Ro(l){return l!=null?st(l.__source):""}var kn={};function jo(l){var m=er();if(!m){var $=typeof l=="string"?l:l.displayName||l.name;$&&(m=`
|
|
590
613
|
|
|
591
|
-
Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(!l._store||l._store.validated||l.key!=null)){l._store.validated=!0;var x=Oo(h);if(!_n[x]){_n[x]=!0;var R="";l&&l._owner&&l._owner!==Y.current&&(R=" It was passed a child from "+z(l._owner.type)+"."),ie(l),re('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',x,R),ie(null)}}}function hr(l,h){if(typeof l=="object"){if(Array.isArray(l))for(var x=0;x<l.length;x++){var R=l[x];He(R)&&Hr(R,h)}else if(He(l))l._store&&(l._store.validated=!0);else if(l){var F=T(l);if(typeof F=="function"&&F!==l.entries)for(var he=F.call(l),Z;!(Z=he.next()).done;)He(Z.value)&&Hr(Z.value,h)}}}function Sn(l){{var h=l.type;if(h==null||typeof h=="string")return;var x=z(h),R;if(typeof h=="function")R=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===m||h.$$typeof===_))R=h.propTypes;else return;R?(ie(l),t(R,l.props,"prop",x,te.getStackAddendum),ie(null)):h.PropTypes!==void 0&&!Ze&&(Ze=!0,re("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x||"Unknown")),typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&re("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yr(l){{ie(l);for(var h=Object.keys(l.props),x=0;x<h.length;x++){var R=h[x];if(R!=="children"&&R!=="key"){re("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",R);break}}l.ref!==null&&re("Invalid attribute `ref` supplied to `React.Fragment`."),ie(null)}}function Cn(l,h,x){var R=Re(l);if(!R){var F="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(F+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var he=To(h);he?F+=he:F+=er();var Z;l===null?Z="null":Array.isArray(l)?Z="array":l!==void 0&&l.$$typeof===o?(Z="<"+(z(l.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof l,re("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,F)}var ne=Et.apply(this,arguments);if(ne==null)return ne;if(R)for(var Ve=2;Ve<arguments.length;Ve++)hr(arguments[Ve],l);return l===a?Yr(ne):Sn(ne),ne}var En=!1;function Ro(l){var h=Cn.bind(null,l);return h.type=l,En||(En=!0,$e("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(h,"type",{enumerable:!1,get:function(){return $e("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:l}),l}}),h}function jo(l,h,x){for(var R=Mt.apply(this,arguments),F=2;F<arguments.length;F++)hr(arguments[F],R.type);return Sn(R),R}try{var kn=Object.freeze({}),Po=new Map([[kn,null]]),Qr=new Set([kn]);Po.set(0,0),Qr.add(0)}catch{}var Do=Cn,Io=jo,Mo=Ro,Lo={map:St,forEach:q,count:L,toArray:Q,only:X};_e.Children=Lo,_e.Component=Ce,_e.Fragment=a,_e.Profiler=c,_e.PureComponent=It,_e.StrictMode=s,_e.Suspense=v,_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ye,_e.cloneElement=Io,_e.createContext=Oe,_e.createElement=Do,_e.createFactory=Mo,_e.createRef=yt,_e.forwardRef=ut,_e.isValidElement=He,_e.lazy=Ne,_e.memo=p,_e.useCallback=Fe,_e.useContext=D,_e.useDebugValue=je,_e.useEffect=ce,_e.useImperativeHandle=me,_e.useLayoutEffect=ae,_e.useMemo=K,_e.useReducer=ge,_e.useRef=fe,_e.useState=G,_e.version=r}();process.env.NODE_ENV==="production"?on.exports=Se:on.exports=_e;var jr=on.exports,Jo={sdkSemver:"1.13.0",techVersion:jr.version,sdkCode:"J"},ov=function(e){ml(t,e);function t(r){var n=e.call(this,r)||this;return n.imageRef=jr.createRef(),n}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new Hg(this.imageRef.current,this.props.cldImg,this.props.plugins,Jo)},t.prototype.componentDidUpdate=function(){ro(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Jo)},t.prototype.componentWillUnmount=function(){ro(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var r=this.props;r.cldImg,r.plugins;var n=vl(r,["cldImg","plugins"]);if(ra())return jr.createElement("img",nn({suppressHydrationWarning:!0},n,{ref:this.imageRef}));var o=jm(this.props.plugins,this.props.cldImg,Jo);return jr.createElement("img",nn({},n,{src:o}))},t}(jr.Component),iv=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){ml(t,e);function t(r){var n=e.call(this,r)||this;return n.videoRef=on.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new _m(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){ro(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){ro(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var r=this,n={};return iv.forEach(function(o){o in r.props&&(n[o]=r.props[o])}),n},t.prototype.attachRef=function(r){this.videoRef.current=r;var n=this.props.innerRef;n&&(n instanceof Function?n(r):n.current=r)},t.prototype.render=function(){var r=this.props;r.cldVid,r.cldPoster,r.plugins,r.sources,r.innerRef,r.useFetchFormat;var n=vl(r,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return jr.createElement("video",nn({},n,{ref:this.attachRef}))},t})(on.exports.Component);const Rl=(e,t,r=!1)=>{g.useEffect(()=>{var o;const n=i=>{e&&!e.contains(i.target)&&t()};return r?(document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}):((o=document.getElementById("root"))==null||o.addEventListener("click",n,!0),()=>{var i;(i=document.getElementById("root"))==null||i.removeEventListener("click",n,!0)})},[r,e,t])};function av(e){return!(typeof e!="object"||e instanceof Array)}class sv{filterOutNonSupportedKeys(t,r){const n=Object.create({});return av(t)?(Object.keys(t).forEach(o=>{r.indexOf(o)>=0?n[o]=t[o]:console.warn("Warning - unsupported key provided to configuration: ",o)}),n):Object.create({})}}const $s=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class ca extends sv{constructor(t){super();const r=this.filterOutNonSupportedKeys(t,$s);Object.assign(this,{secure:!0},r)}extend(t){const r=this.filterOutNonSupportedKeys(t,$s);return new ca(Object.assign({},this,r))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class an{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(r=>this.hasValue(r)),this}setDelimiter(t){return this.delimiter=t,this}}class cv extends Error{constructor(t="Unsupported"){super(t)}}function la(e){return new cv(e)}function lv(){return this._qualifierModel||{error:la(`unsupported qualifier ${this.constructor.name}`)}}class uv{constructor(){this._qualifierModel={}}toJson(){return lv.apply(this)}}class Co extends uv{constructor(t,r){super(),this.delimiter="_",this.key=t,r instanceof an?this.qualifierValue=r:(this.qualifierValue=new an,this.qualifierValue.addValue(r))}toString(){const{key:t,delimiter:r,qualifierValue:n}=this;return`${t}${r}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class lr extends Co{constructor(t,r){let n;r?n=new an([t,`${r}`]).setDelimiter(":"):n=t,super("fl",n),this.flagValue=r}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function dv(e,t){const r=Array.from(e.entries());return t.forEach(n=>{r.push(["fl",n])}),r.sort().map(n=>n[1])}function fv(){var e,t,r;const n=this._actionModel&&Object.keys(this._actionModel).length,o=(r=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||r===void 0?void 0:r.error;return o&&o instanceof Error?{error:o}:n?this._actionModel:{error:la(`unsupported action ${this.constructor.name}`)}}class pv{constructor(){this._actionModel={}}toJson(){return fv.apply(this)}}class ua extends pv{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),dv(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[r,n]=t.toLowerCase().split("_");r==="fl"?this.flags.push(new lr(n)):this.qualifiers.set(r,new Co(r,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new lr(t)):t instanceof lr&&this.flags.push(t),this}addValueToQualifier(t,r){return this.qualifiers.get(t).addValue(r),this}}function hv(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class gv extends ua{constructor(t){super(),this._actionModel={},this.addQualifier(new Co("b",new an(hv(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:r}=t;return new this(r)}}class _s{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:la(`unsupported action ${this.constructor.name}`)}}}function yv(e){const t=e;return"error"in t&&!!t.error}function mv(){return new lr("lossy")}function vv(){return new lr("preserve_transparency")}function bv(e){return new lr("progressive",e)}class wv extends an{constructor(t){super(t),this.val=t}getValue(){return this.val}}function kr(e){const t={};return Object.keys(e).forEach(r=>{t[e[r]]=r}),t}const xv={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},$v={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},_v={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Sv={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},Cv={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},Ev={444:"CHROMA_444",420:"CHROMA_420"},kv={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};kr(Ev);kr(kv);kr(xv);const Av=kr($v);kr(_v);kr(Sv);kr(Cv);class Tv extends ua{constructor(t,r,n){super(),this._actionModel={};let o;r instanceof wv?o=r.getValue():o=r,this._actionModel.actionType=Av[t],this._actionModel[n]=o,this.addQualifier(new Co(t,r))}}class Ov extends lr{constructor(t){super("progressive",t)}}class oo extends Tv{constructor(t,r){super(t,r,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(mv()),this}progressive(t){return t instanceof Ov?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(bv(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(vv()),this}static fromJson(t){const{formatType:r,lossy:n,progressive:o,preserveTransparency:i}=t;let a;return r?a=new this("f",r):a=new this("f"),o&&(o.mode?a.progressive(o.mode):a.progressive()),n&&a.lossy(),i&&a.preserveTransparency(),a}}class Eo{constructor(){this.actions=[]}addAction(t){let r;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";r=new _s(t)}else r=t;return this.actions.push(r),this}addTransformation(t){return t instanceof Eo?this.actions=this.actions.concat(t.actions):this.actions.push(new _s(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new oo("q",t)),this}format(t){return this.addAction(new oo("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new gv(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const r=new ua;let n=t;return typeof t=="string"&&(n=new lr(t)),r.addQualifier(n),this.addAction(r)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const r of this.actions){const n=r.toJson();if(yv(n))return n;t.push(n)}return{actions:t}}}class Rv extends Eo{}class jv extends Eo{}function Pv(e){return e.match(/^https?:\//)}function Dv(e){return e.indexOf("/")<0}function Iv(e){return e.match(/^v[0-9]+/)}function Mv(e,t){const r=t.secure,n=t.privateCdn,o=t.cname,i=t.secureDistribution;return!r&&!o?`http://res.cloudinary.com/${e}`:r&&!i&&n?`https://${e}-res.cloudinary.com`:r&&!i?`https://res.cloudinary.com/${e}`:r&&i&&n?`https://${i}`:r&&i?`https://${i}/${e}`:!r&&o?`http://${o}/${e}`:"ERROR"}function Lv(e){return e||"image"}function Nv(e){return e||"upload"}function Fv(e,t,r){const n=r!==!1;return t?`v${t}`:Iv(e)||Pv(e)||Dv(e)?"":n?"v1":""}function da(e,t,r){let n=t>>0,o=String(r);return e.length>n?String(e):(n=n-e.length,n>o.length&&(o+=Vv(o,n/o.length)),o.slice(0,n)+String(e))}function Vv(e,t){let r=t,n="";for(;r>0;)n+=e,r--;return n}const zv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",io={};let Ss=0;zv.split("").forEach(e=>{let t=Ss.toString(2);t=da(t,6,"0"),io[t]=e,Ss++});function Bv(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function Wv(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const r=+t;if(isNaN(r)||r<0)throw"Invalid version number provided";return da(t,2,"0")}).join(".")}function Cs(e){let t="";const n=e.split(".").length*6,o=Bv(e),i=Wv(o);let s=parseInt(i.split(".").join("")).toString(2);if(s=da(s,n,"0"),s.length%6!==0)throw"Version must be smaller than 43.21.26)";return s.match(/.{1,6}/g).forEach(c=>{t+=io[c]}),t}function Uv(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}const qv="1.21.0";function Gv(e){const[t,r]=e.split("."),n=parseInt(t).toString(2),o=parseInt(r).toString(2),i=n.padStart(6,"0"),a=o.padStart(6,"0");return io[i]+io[a]}function Hv(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function Yv(e){const t={techVersion:Hv(),sdkCode:"T",sdkSemver:qv.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function Es(e){const t=Yv(e),r=Uv(t);try{const n=Qv(r.techVersion),o=Cs(r.sdkSemver),i=Cs(n),a=Gv(r.osVersion),s=r.feature,c=r.sdkCode,{product:u,osType:f}=r;return`D${u}${c}${o}${i}${f}${a}${s}`}catch{return"E"}}function Qv(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const ks={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class Kv{constructor(t,r={},n){this.setPublicID(t),this.setCloudConfig(r),this.setURLConfig(n)}setURLConfig(t){return this.urlConfig=new ca(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,r=this.suffix&&this.suffix.indexOf("/")>=0;if(t||r)throw"`suffix`` should not include . or /"}getResourceType(){const t=Lv(this.assetType),r=Nv(this.deliveryType),n=!!this.suffix,o=`${t}/${r}`,i=ks[`${t}/${r}`],a=this.urlConfig.useRootPath,s=this.urlConfig.shorten;if(a){if(o==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${o} instead`)}if(s&&o==="image/upload")return"iu";if(n){if(i)return i;throw new Error(`URL Suffix only supported for ${Object.keys(ks).join(", ")}, Provided: ${o} instead`)}return o}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,r){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=Mv(this.cloudName,this.urlConfig),o=t?t.toString():"",i=Fv(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[n,this.getResourceType(),this.getSignature(),o,i,a.replace(/,/g,"%2C"),this.suffix].filter(c=>c).join("/");{const s=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(o),i,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(f=>f).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),c=this.urlConfig.analytics!==!1&&!a.includes("?");let u="";if(typeof this.urlConfig.queryParams=="object")try{const f=new URLSearchParams(this.urlConfig.queryParams);c&&f.set("_a",Es(r)),u=f.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else u=this.urlConfig.queryParams||"",c&&(u+=`${u.length>0?"&":""}_a=${Es(r)}`);return u?`${s}?${u}`:s}}}class jl extends Kv{constructor(t,r,n,o){super(t,r,n),this.transformation=o}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new oo("q",t)),this}format(t){return this.addAction(new oo("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class Jv extends jl{constructor(t,r,n){super(t,r,n,new Rv)}}class Xv extends jl{constructor(t,r,n){super(t,r,n,new jv),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class Zv{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new Jv(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new Xv(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const eb=({publicId:e,format:t="webp"})=>{const r=g.useMemo(()=>new Zv({cloud:{cloudName:"fluid-attacks"}}),[]);return g.useMemo(()=>r.image(e).format(t),[r,e,t])},tb=({alt:e="img",height:t="",width:r="",plugins:n=[km(),yl()],publicId:o})=>{const i=eb({publicId:o});return S.jsx(ov,{alt:e,cldImg:i,height:t,plugins:n,width:r})},ko=g.memo(tb);var fr=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],rb="react-international-phone-",Pl=(...e)=>e.filter(t=>!!t).join(" ").trim(),nb=(...e)=>Pl(...e).split(" ").map(t=>`${rb}${t}`).join(" "),ft=({addPrefix:e,rawClassNames:t})=>Pl(nb(...e),...t),ob=({value:e,mask:t,maskSymbol:r,offset:n=0,trimNonMaskCharsLeftover:o=!1})=>{if(e.length<n)return e;let i=e.slice(0,n),a=e.slice(n),s=i,c=0;for(let u of t.split("")){if(c>=a.length){if(!o&&u!==r){s+=u;continue}break}u===r?(s+=a[c],c+=1):s+=u}return s},Rr=e=>e?/^\d+$/.test(e):!1,Ao=e=>e.replace(/\D/g,""),ib=(e,t)=>{let r=e.style.display;r!=="block"&&(e.style.display="block");let n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=o.top-n.top,a=n.bottom-o.bottom;i>=0&&a>=0||(Math.abs(i)<Math.abs(a)?e.scrollTop+=i:e.scrollTop-=a),e.style.display=r},ab=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),sb=(e,t)=>{let r=t.disableDialCodeAndPrefix?!1:t.forceDialCode,n=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,o=e,i=u=>t.trimNonDigitsEnd?u.trim():u;if(!o)return n&&!o.length||r?i(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):i(o);if(o=Ao(o),o===t.dialCode&&!t.disableDialCodeAndPrefix)return i(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(o)&&!t.disableDialCodeAndPrefix)return i(r?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${o}`);if(!o.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(r)return i(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(o.length<t.dialCode.length)return i(`${t.prefix}${o}`)}let a=()=>{let u=t.dialCode.length,f=o.slice(0,u),y=o.slice(u);return{phoneLeftSide:f,phoneRightSide:y}},{phoneLeftSide:s,phoneRightSide:c}=a();return s=`${t.prefix}${s}${t.charAfterDialCode}`,c=ob({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(s=""),i(`${s}${c}`)},cb=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:r,cursorPositionAfterInput:n,leftOffset:o=0,deletion:i})=>{if(n<o)return o;if(!e)return r.length;let a=null;for(let f=n-1;f>=0;f-=1)if(Rr(t[f])){a=f;break}if(a===null){for(let f=0;f<t.length;f+=1)if(Rr(r[f]))return f;return t.length}let s=0;for(let f=0;f<a;f+=1)Rr(t[f])&&(s+=1);let c=0,u=0;for(let f=0;f<r.length&&(c+=1,Rr(r[f])&&(u+=1),!(u>=s+1));f+=1);if(i!=="backward")for(;!Rr(r[c])&&c<r.length;)c+=1;return c},Un=({phone:e,prefix:t})=>e?`${t}${Ao(e)}`:"";function Ri({value:e,country:t,insertDialCodeOnEmpty:r,trimNonDigitsEnd:n,countries:o,prefix:i,charAfterDialCode:a,forceDialCode:s,disableDialCodeAndPrefix:c,defaultMask:u,countryGuessingEnabled:f,disableFormatting:y}){let m=e;c&&(m=m.startsWith(`${i}`)?m:`${i}${t.dialCode}${m}`);let v=f?mb({phone:m,countries:o,currentCountryIso2:t==null?void 0:t.iso2}):void 0,w=(v==null?void 0:v.country)??t,_=sb(m,{prefix:i,mask:gb({phone:m,country:w,defaultMask:u,disableFormatting:y}),maskChar:Dl,dialCode:w.dialCode,trimNonDigitsEnd:n,charAfterDialCode:a,forceDialCode:s,insertDialCodeOnEmpty:r,disableDialCodeAndPrefix:c}),O=f&&!(v!=null&&v.fullDialCodeMatch)?t:w;return{phone:Un({phone:c?`${O.dialCode}${_}`:_,prefix:i}),inputValue:_,country:O}}var lb=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},ub=(e,{country:t,insertDialCodeOnEmpty:r,phoneBeforeInput:n,prefix:o,charAfterDialCode:i,forceDialCode:a,disableDialCodeAndPrefix:s,countryGuessingEnabled:c,defaultMask:u,disableFormatting:f,countries:y})=>{let m=e.nativeEvent,v=m.inputType,w=lb(v),_=!!(v!=null&&v.startsWith("insertFrom")),O=v==="insertText",$=(m==null?void 0:m.data)||void 0,C=e.target.value,P=e.target.selectionStart??0;if(v!=null&&v.includes("history"))return{inputValue:n,phone:Un({phone:n,prefix:o}),cursorPosition:n.length,country:t};if(O&&!Rr($)&&C!==o)return{inputValue:n,phone:Un({phone:s?`${t.dialCode}${n}`:n,prefix:o}),cursorPosition:P-(($==null?void 0:$.length)??0),country:t};if(a&&!C.startsWith(`${o}${t.dialCode}`)&&!_){let V=C?n:`${o}${t.dialCode}${i}`;return{inputValue:V,phone:Un({phone:V,prefix:o}),cursorPosition:o.length+t.dialCode.length+i.length,country:t}}let{phone:I,inputValue:M,country:k}=Ri({value:C,country:t,trimNonDigitsEnd:w==="backward",insertDialCodeOnEmpty:r,countryGuessingEnabled:c,countries:y,prefix:o,charAfterDialCode:i,forceDialCode:a,disableDialCodeAndPrefix:s,disableFormatting:f,defaultMask:u}),T=cb({cursorPositionAfterInput:P,phoneBeforeInput:n,phoneAfterInput:C,phoneAfterFormatted:M,leftOffset:a?o.length+t.dialCode.length+i.length:0,deletion:w});return{phone:I,inputValue:M,cursorPosition:T,country:k}},db=(e,t)=>{let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o of r)if(e[o]!==t[o])return!1;return!0},fb=()=>{let e=g.useRef(),t=g.useRef(Date.now());return{check:()=>{let r=Date.now(),n=e.current?r-t.current:void 0;return e.current=t.current,t.current=r,n}}},pb={size:20,overrideLastItemDebounceMS:-1};function hb(e,t){let{size:r,overrideLastItemDebounceMS:n,onChange:o}={...pb,...t},[i,a]=g.useState(e),[s,c]=g.useState([i]),[u,f]=g.useState(0),y=fb();return[i,(m,v)=>{if(typeof m=="object"&&typeof i=="object"&&db(m,i)||m===i)return;let w=n>0,_=y.check(),O=w&&_!==void 0?_>n:!0;if((v==null?void 0:v.overrideLastItem)!==void 0?v.overrideLastItem:!O)c($=>[...$.slice(0,u),m]);else{let $=s.length>=r;c(C=>[...C.slice($?1:0,u+1),m]),$||f(C=>C+1)}a(m),o==null||o(m)},()=>{if(u<=0)return{success:!1};let m=s[u-1];return a(m),f(v=>v-1),o==null||o(m),{success:!0,value:m}},()=>{if(u+1>=s.length)return{success:!1};let m=s[u+1];return a(m),f(v=>v+1),o==null||o(m),{success:!0,value:m}}]}var Dl=".",Vt={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:fr,preferredCountries:[]},Il=({defaultCountry:e=Vt.defaultCountry,value:t=Vt.value,countries:r=Vt.countries,prefix:n=Vt.prefix,defaultMask:o=Vt.defaultMask,charAfterDialCode:i=Vt.charAfterDialCode,historySaveDebounceMS:a=Vt.historySaveDebounceMS,disableCountryGuess:s=Vt.disableCountryGuess,disableDialCodePrefill:c=Vt.disableDialCodePrefill,forceDialCode:u=Vt.forceDialCode,disableDialCodeAndPrefix:f=Vt.disableDialCodeAndPrefix,disableFormatting:y=Vt.disableFormatting,onChange:m,inputRef:v})=>{let w={countries:r,prefix:n,charAfterDialCode:i,forceDialCode:f?!1:u,disableDialCodeAndPrefix:f,defaultMask:o,countryGuessingEnabled:!s,disableFormatting:y},_=g.useRef(null),O=v||_,$=N=>{Promise.resolve().then(()=>{var J;typeof window>"u"||O.current!==(document==null?void 0:document.activeElement)||((J=O.current)==null||J.setSelectionRange(N,N))})},[{phone:C,inputValue:P,country:I},M,k,T]=hb(()=>{let N=Pr({value:e,field:"iso2",countries:r});N||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let J=N||Pr({value:"us",field:"iso2",countries:r}),{phone:z,inputValue:te,country:B}=Ri({value:t,country:J,insertDialCodeOnEmpty:!c,...w});return $(te.length),{phone:z,inputValue:te,country:B.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:N,phone:J,country:z})=>{if(!m)return;let te=V(z);m({phone:J,inputValue:N,country:te})}}),V=g.useCallback(N=>Pr({value:N,field:"iso2",countries:r}),[r]),U=g.useMemo(()=>V(I),[I,V]);g.useEffect(()=>{let N=O.current;if(!N)return;let J=z=>{if(!z.key)return;let te=z.ctrlKey,B=z.metaKey,ie=z.shiftKey;if(z.key.toLowerCase()==="z"){if(ab()){if(!B)return}else if(!te)return;ie?T():k()}};return N.addEventListener("keydown",J),()=>{N.removeEventListener("keydown",J)}},[O,k,T]);let Y=N=>{N.preventDefault();let{phone:J,inputValue:z,country:te,cursorPosition:B}=ub(N,{country:U,phoneBeforeInput:P,insertDialCodeOnEmpty:!1,...w});return M({inputValue:z,phone:J,country:te.iso2}),$(B),t},pe=(N,J={focusOnInput:!1})=>{let z=Pr({value:N,field:"iso2",countries:r});if(!z){console.error(`[react-international-phone]: can not find a country with "${N}" iso2 code`);return}let te=f?"":`${n}${z.dialCode}${i}`;M({inputValue:te,phone:`${n}${z.dialCode}`,country:z.iso2}),J.focusOnInput&&Promise.resolve().then(()=>{var B;(B=O.current)==null||B.focus()})},[ve,se]=g.useState(!1);return g.useEffect(()=>{if(!ve){se(!0),t!==C&&(m==null||m({inputValue:P,phone:C,country:U}));return}if(t===C)return;let{phone:N,inputValue:J,country:z}=Ri({value:t,country:U,insertDialCodeOnEmpty:!c,...w});M({phone:N,inputValue:J,country:z.iso2})},[t]),{phone:C,inputValue:P,country:U,setCountry:pe,handlePhoneValueChange:Y,inputRef:O}},gb=({phone:e,country:t,defaultMask:r="............",disableFormatting:n=!1})=>{let o=t.format,i=s=>n?s.replace(new RegExp(`[^${Dl}]`,"g"),""):s;if(!o)return i(r);if(typeof o=="string")return i(o);if(!o.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),i(r);let a=Object.keys(o).find(s=>{if(s==="default")return!1;if(!(s.charAt(0)==="/"&&s.charAt(s.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${s}" for ${t.iso2} is not valid`),!1;let c=new RegExp(s.substring(1,s.length-1)),u=e.replace(t.dialCode,"");return c.test(Ao(u))});return i(a?o[a]:o.default)},qt=e=>{let[t,r,n,o,i,a]=e;return{name:t,iso2:r,dialCode:n,format:o,priority:i,areaCodes:a}},yb=e=>`Field "${e}" is not supported`,Pr=({field:e,value:t,countries:r=fr})=>{if(["priority"].includes(e))throw new Error(yb(e));let n=r.find(o=>{let i=qt(o);return t===i[e]});if(n)return qt(n)},mb=({phone:e,countries:t=fr,currentCountryIso2:r})=>{var s;let n={country:void 0,fullDialCodeMatch:!1};if(!e)return n;let o=Ao(e);if(!o)return n;let i=n,a=({country:c,fullDialCodeMatch:u})=>{var m,v;let f=c.dialCode===((m=i.country)==null?void 0:m.dialCode),y=(c.priority??0)<(((v=i.country)==null?void 0:v.priority)??0);(!f||y)&&(i={country:c,fullDialCodeMatch:u})};for(let c of t){let u=qt(c),{dialCode:f,areaCodes:y}=u;if(o.startsWith(f)){let m=i.country?Number(f)>=Number(i.country.dialCode):!0;if(y){let v=o.substring(f.length);for(let w of y)if(v.startsWith(w))return{country:u,fullDialCodeMatch:!0}}(m||f===o||!i.fullDialCodeMatch)&&a({country:u,fullDialCodeMatch:!0})}i.fullDialCodeMatch||o.length<f.length&&f.startsWith(o)&&(!i.country||Number(f)<=Number(i.country.dialCode))&&a({country:u,fullDialCodeMatch:!1})}if(r){let c=Pr({value:r,field:"iso2",countries:t});if(!c)return i;let u=c?(f=>{if(!(f!=null&&f.areaCodes))return!1;let y=o.substring(f.dialCode.length);return f.areaCodes.some(m=>m.startsWith(y))})(c):!1;i&&((s=i.country)==null?void 0:s.dialCode)===c.dialCode&&i.country!==c&&i.fullDialCodeMatch&&(!c.areaCodes||u)&&(i={country:c,fullDialCodeMatch:!0})}return i},vb=(e,t)=>{let r=parseInt(e,16);return Number(r+t).toString(16)},bb="abcdefghijklmnopqrstuvwxyz",wb="1f1e6",As=bb.split("").reduce((e,t,r)=>({...e,[t]:vb(wb,r)}),{}),xb=e=>[As[e[0]],As[e[1]]].join("-"),ao=({iso2:e,size:t,src:r,protocol:n="https",disableLazyLoading:o,className:i,style:a,...s})=>{if(!e)return g.createElement("img",{className:ft({addPrefix:["flag-emoji"],rawClassNames:[i]}),width:t,height:t,...s});let c=()=>{if(r)return r;let u=xb(e);return`${n}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${u}.svg`};return g.createElement("img",{className:ft({addPrefix:["flag-emoji"],rawClassNames:[i]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:o?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...s})},$b=1e3,_b=({show:e,dialCodePrefix:t="+",selectedCountry:r,countries:n=fr,preferredCountries:o=[],flags:i,onSelect:a,onClose:s,...c})=>{let u=g.useRef(null),f=g.useRef(),y=g.useMemo(()=>{if(!o||!o.length)return n;let k=[],T=[...n];for(let V of o){let U=T.findIndex(Y=>qt(Y).iso2===V);if(U!==-1){let Y=T.splice(U,1)[0];k.push(Y)}}return k.concat(T)},[n,o]),m=g.useRef({updatedAt:void 0,value:""}),v=k=>{let T=m.current.updatedAt&&new Date().getTime()-m.current.updatedAt.getTime()>$b;m.current={value:T?k:`${m.current.value}${k}`,updatedAt:new Date};let V=y.findIndex(U=>qt(U).name.toLowerCase().startsWith(m.current.value));V!==-1&&O(V)},w=g.useCallback(k=>y.findIndex(T=>qt(T).iso2===k),[y]),[_,O]=g.useState(w(r)),$=()=>{f.current!==r&&O(w(r))},C=g.useCallback(k=>{O(w(k.iso2)),a==null||a(k)},[a,w]),P=k=>{let T=y.length-1,V=U=>k==="prev"?U-1:k==="next"?U+1:k==="last"?T:0;O(U=>{let Y=V(U);return Y<0?0:Y>T?T:Y})},I=k=>{if(k.stopPropagation(),k.key==="Enter"){k.preventDefault();let T=qt(y[_]);C(T);return}if(k.key==="Escape"){s==null||s();return}if(k.key==="ArrowUp"){k.preventDefault(),P("prev");return}if(k.key==="ArrowDown"){k.preventDefault(),P("next");return}if(k.key==="PageUp"){k.preventDefault(),P("first");return}if(k.key==="PageDown"){k.preventDefault(),P("last");return}k.key===" "&&k.preventDefault(),k.key.length===1&&!k.altKey&&!k.ctrlKey&&!k.metaKey&&v(k.key.toLocaleLowerCase())},M=g.useCallback(()=>{if(!u.current||_===void 0)return;let k=qt(y[_]).iso2;if(k===f.current)return;let T=u.current.querySelector(`[data-country="${k}"]`);T&&(ib(u.current,T),f.current=k)},[_,y]);return g.useEffect(()=>{M()},[_,M]),g.useEffect(()=>{u.current&&(e?u.current.focus():$())},[e]),g.useEffect(()=>{$()},[r]),g.createElement("ul",{ref:u,role:"listbox",className:ft({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:I,onBlur:s,tabIndex:-1,"aria-activedescendant":`react-international-phone__${qt(y[_]).iso2}-option`},y.map((k,T)=>{let V=qt(k),U=V.iso2===r,Y=T===_,pe=o.includes(V.iso2),ve=T===o.length-1,se=i==null?void 0:i.find(N=>N.iso2===V.iso2);return g.createElement(g.Fragment,{key:V.iso2},g.createElement("li",{"data-country":V.iso2,role:"option","aria-selected":U,"aria-label":`${V.name} ${t}${V.dialCode}`,id:`react-international-phone__${V.iso2}-option`,className:ft({addPrefix:["country-selector-dropdown__list-item",pe&&"country-selector-dropdown__list-item--preferred",U&&"country-selector-dropdown__list-item--selected",Y&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>C(V),style:c.listItemStyle,title:V.name},g.createElement(ao,{iso2:V.iso2,src:se==null?void 0:se.src,className:ft({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),g.createElement("span",{className:ft({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},V.name),g.createElement("span",{className:ft({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,V.dialCode)),ve?g.createElement("hr",{className:ft({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},Sb=({selectedCountry:e,onSelect:t,disabled:r,hideDropdown:n,countries:o=fr,preferredCountries:i=[],flags:a,renderButtonWrapper:s,...c})=>{let[u,f]=g.useState(!1),y=g.useMemo(()=>{if(e)return Pr({value:e,field:"iso2",countries:o})},[o,e]),m=g.useRef(null),v=_=>{_.key&&["ArrowUp","ArrowDown"].includes(_.key)&&(_.preventDefault(),f(!0))},w=()=>{var $;let _={title:y==null?void 0:y.name,onClick:()=>f(C=>!C),onMouseDown:C=>C.preventDefault(),onKeyDown:v,disabled:n||r,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":u},O=g.createElement("div",{className:ft({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},g.createElement(ao,{iso2:e,src:($=a==null?void 0:a.find(C=>C.iso2===e))==null?void 0:$.src,className:ft({addPrefix:["country-selector-button__flag-emoji",r&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!n&&g.createElement("div",{className:ft({addPrefix:["country-selector-button__dropdown-arrow",r&&"country-selector-button__dropdown-arrow--disabled",u&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return s?s({children:O,rootProps:_}):g.createElement("button",{..._,type:"button",className:ft({addPrefix:["country-selector-button",u&&"country-selector-button--active",r&&"country-selector-button--disabled",n&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},O)};return g.createElement("div",{className:ft({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:m},w(),g.createElement(_b,{show:u,countries:o,preferredCountries:i,flags:a,onSelect:_=>{f(!1),t==null||t(_)},selectedCountry:e,onClose:()=>{f(!1)},...c.dropdownStyleProps}))},Cb=({dialCode:e,prefix:t,disabled:r,style:n,className:o})=>g.createElement("div",{className:ft({addPrefix:["dial-code-preview",r&&"dial-code-preview--disabled"],rawClassNames:[o]}),style:n},`${t}${e}`);g.forwardRef(({value:e,onChange:t,countries:r=fr,preferredCountries:n=[],hideDropdown:o,showDisabledDialCodeAndPrefix:i,disableFocusAfterCountrySelect:a,flags:s,style:c,className:u,inputStyle:f,inputClassName:y,countrySelectorStyleProps:m,dialCodePreviewStyleProps:v,inputProps:w,placeholder:_,disabled:O,name:$,onFocus:C,onBlur:P,required:I,autoFocus:M,...k},T)=>{let{phone:V,inputValue:U,inputRef:Y,country:pe,setCountry:ve,handlePhoneValueChange:se}=Il({value:e,countries:r,...k,onChange:J=>{t==null||t(J.phone,{country:J.country,inputValue:J.inputValue})}}),N=k.disableDialCodeAndPrefix&&i&&(pe==null?void 0:pe.dialCode);return g.useImperativeHandle(T,()=>Y.current?Object.assign(Y.current,{setCountry:ve,state:{phone:V,inputValue:U,country:pe}}):null,[Y,ve,V,U,pe]),g.createElement("div",{ref:T,className:ft({addPrefix:["input-container"],rawClassNames:[u]}),style:c},g.createElement(Sb,{onSelect:J=>ve(J.iso2,{focusOnInput:!a}),flags:s,selectedCountry:pe.iso2,countries:r,preferredCountries:n,disabled:O,hideDropdown:o,...m}),N&&g.createElement(Cb,{dialCode:pe.dialCode,prefix:k.prefix??"+",disabled:O,...v}),g.createElement("input",{onChange:se,value:U,type:"tel",ref:Y,className:ft({addPrefix:["input",O&&"input--disabled"],rawClassNames:[y]}),placeholder:_,disabled:O,style:f,name:$,onFocus:C,onBlur:P,autoFocus:M,required:I,...w}))});const Eb=oe.div`
|
|
614
|
+
Check the top-level render call using <`+$+">.")}return m}function Hr(l,m){if(!(!l._store||l._store.validated||l.key!=null)){l._store.validated=!0;var $=jo(m);if(!kn[$]){kn[$]=!0;var R="";l&&l._owner&&l._owner!==V.current&&(R=" It was passed a child from "+B(l._owner.type)+"."),se(l),ne('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',$,R),se(null)}}}function hr(l,m){if(typeof l=="object"){if(Array.isArray(l))for(var $=0;$<l.length;$++){var R=l[$];Ye(R)&&Hr(R,m)}else if(Ye(l))l._store&&(l._store.validated=!0);else if(l){var F=j(l);if(typeof F=="function"&&F!==l.entries)for(var ge=F.call(l),ee;!(ee=ge.next()).done;)Ye(ee.value)&&Hr(ee.value,m)}}}function An(l){{var m=l.type;if(m==null||typeof m=="string")return;var $=B(m),R;if(typeof m=="function")R=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===h||m.$$typeof===S))R=m.propTypes;else return;R?(se(l),t(R,l.props,"prop",$,re.getStackAddendum),se(null)):m.PropTypes!==void 0&&!tt&&(tt=!0,ne("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$||"Unknown")),typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&ne("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yr(l){{se(l);for(var m=Object.keys(l.props),$=0;$<m.length;$++){var R=m[$];if(R!=="children"&&R!=="key"){ne("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",R);break}}l.ref!==null&&ne("Invalid attribute `ref` supplied to `React.Fragment`."),se(null)}}function Tn(l,m,$){var R=Re(l);if(!R){var F="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(F+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ge=Ro(m);ge?F+=ge:F+=er();var ee;l===null?ee="null":Array.isArray(l)?ee="array":l!==void 0&&l.$$typeof===o?(ee="<"+(B(l.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):ee=typeof l,ne("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ee,F)}var oe=kt.apply(this,arguments);if(oe==null)return oe;if(R)for(var Ve=2;Ve<arguments.length;Ve++)hr(arguments[Ve],l);return l===a?Yr(oe):An(oe),oe}var On=!1;function Po(l){var m=Tn.bind(null,l);return m.type=l,On||(On=!0,$e("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(m,"type",{enumerable:!1,get:function(){return $e("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:l}),l}}),m}function Io(l,m,$){for(var R=Mt.apply(this,arguments),F=2;F<arguments.length;F++)hr(arguments[F],R.type);return An(R),R}try{var Rn=Object.freeze({}),Do=new Map([[Rn,null]]),Qr=new Set([Rn]);Do.set(0,0),Qr.add(0)}catch{}var Mo=Tn,Lo=Io,No=Po,Fo={map:Ct,forEach:G,count:L,toArray:Q,only:Z};_e.Children=Fo,_e.Component=Ce,_e.Fragment=a,_e.Profiler=c,_e.PureComponent=Dt,_e.StrictMode=s,_e.Suspense=g,_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=me,_e.cloneElement=Lo,_e.createContext=Oe,_e.createElement=Mo,_e.createFactory=No,_e.createRef=mt,_e.forwardRef=ft,_e.isValidElement=Ye,_e.lazy=Ne,_e.memo=p,_e.useCallback=Fe,_e.useContext=I,_e.useDebugValue=je,_e.useEffect=le,_e.useImperativeHandle=ve,_e.useLayoutEffect=ce,_e.useMemo=K,_e.useReducer=ye,_e.useRef=pe,_e.useState=q,_e.version=r}();process.env.NODE_ENV==="production"?an.exports=Se:an.exports=_e;var jr=an.exports,Zo={sdkSemver:"1.13.0",techVersion:jr.version,sdkCode:"J"},av=function(e){wl(t,e);function t(r){var n=e.call(this,r)||this;return n.imageRef=jr.createRef(),n}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new Qg(this.imageRef.current,this.props.cldImg,this.props.plugins,Zo)},t.prototype.componentDidUpdate=function(){io(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Zo)},t.prototype.componentWillUnmount=function(){io(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var r=this.props;r.cldImg,r.plugins;var n=xl(r,["cldImg","plugins"]);if(ia())return jr.createElement("img",on({suppressHydrationWarning:!0},n,{ref:this.imageRef}));var o=Im(this.props.plugins,this.props.cldImg,Zo);return jr.createElement("img",on({},n,{src:o}))},t}(jr.Component),sv=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){wl(t,e);function t(r){var n=e.call(this,r)||this;return n.videoRef=an.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new Cm(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){io(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){io(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var r=this,n={};return sv.forEach(function(o){o in r.props&&(n[o]=r.props[o])}),n},t.prototype.attachRef=function(r){this.videoRef.current=r;var n=this.props.innerRef;n&&(n instanceof Function?n(r):n.current=r)},t.prototype.render=function(){var r=this.props;r.cldVid,r.cldPoster,r.plugins,r.sources,r.innerRef,r.useFetchFormat;var n=xl(r,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return jr.createElement("video",on({},n,{ref:this.attachRef}))},t})(an.exports.Component);const Il=(e,t,r=!1)=>{v.useEffect(()=>{var o;const n=i=>{e&&!e.contains(i.target)&&t()};return r?(document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}):((o=document.getElementById("root"))==null||o.addEventListener("click",n,!0),()=>{var i;(i=document.getElementById("root"))==null||i.removeEventListener("click",n,!0)})},[r,e,t])};function cv(e){return!(typeof e!="object"||e instanceof Array)}class lv{filterOutNonSupportedKeys(t,r){const n=Object.create({});return cv(t)?(Object.keys(t).forEach(o=>{r.indexOf(o)>=0?n[o]=t[o]:console.warn("Warning - unsupported key provided to configuration: ",o)}),n):Object.create({})}}const Es=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class da extends lv{constructor(t){super();const r=this.filterOutNonSupportedKeys(t,Es);Object.assign(this,{secure:!0},r)}extend(t){const r=this.filterOutNonSupportedKeys(t,Es);return new da(Object.assign({},this,r))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class sn{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(r=>this.hasValue(r)),this}setDelimiter(t){return this.delimiter=t,this}}class uv extends Error{constructor(t="Unsupported"){super(t)}}function fa(e){return new uv(e)}function dv(){return this._qualifierModel||{error:fa(`unsupported qualifier ${this.constructor.name}`)}}class fv{constructor(){this._qualifierModel={}}toJson(){return dv.apply(this)}}class Ao extends fv{constructor(t,r){super(),this.delimiter="_",this.key=t,r instanceof sn?this.qualifierValue=r:(this.qualifierValue=new sn,this.qualifierValue.addValue(r))}toString(){const{key:t,delimiter:r,qualifierValue:n}=this;return`${t}${r}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class lr extends Ao{constructor(t,r){let n;r?n=new sn([t,`${r}`]).setDelimiter(":"):n=t,super("fl",n),this.flagValue=r}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function pv(e,t){const r=Array.from(e.entries());return t.forEach(n=>{r.push(["fl",n])}),r.sort().map(n=>n[1])}function hv(){var e,t,r;const n=this._actionModel&&Object.keys(this._actionModel).length,o=(r=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||r===void 0?void 0:r.error;return o&&o instanceof Error?{error:o}:n?this._actionModel:{error:fa(`unsupported action ${this.constructor.name}`)}}class gv{constructor(){this._actionModel={}}toJson(){return hv.apply(this)}}class pa extends gv{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),pv(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[r,n]=t.toLowerCase().split("_");r==="fl"?this.flags.push(new lr(n)):this.qualifiers.set(r,new Ao(r,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new lr(t)):t instanceof lr&&this.flags.push(t),this}addValueToQualifier(t,r){return this.qualifiers.get(t).addValue(r),this}}function yv(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class mv extends pa{constructor(t){super(),this._actionModel={},this.addQualifier(new Ao("b",new sn(yv(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:r}=t;return new this(r)}}class ks{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:fa(`unsupported action ${this.constructor.name}`)}}}function vv(e){const t=e;return"error"in t&&!!t.error}function bv(){return new lr("lossy")}function wv(){return new lr("preserve_transparency")}function xv(e){return new lr("progressive",e)}class $v extends sn{constructor(t){super(t),this.val=t}getValue(){return this.val}}function kr(e){const t={};return Object.keys(e).forEach(r=>{t[e[r]]=r}),t}const _v={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},Sv={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},Cv={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Ev={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},kv={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},Av={444:"CHROMA_444",420:"CHROMA_420"},Tv={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};kr(Av);kr(Tv);kr(_v);const Ov=kr(Sv);kr(Cv);kr(Ev);kr(kv);class Rv extends pa{constructor(t,r,n){super(),this._actionModel={};let o;r instanceof $v?o=r.getValue():o=r,this._actionModel.actionType=Ov[t],this._actionModel[n]=o,this.addQualifier(new Ao(t,r))}}class jv extends lr{constructor(t){super("progressive",t)}}class so extends Rv{constructor(t,r){super(t,r,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(bv()),this}progressive(t){return t instanceof jv?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(xv(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(wv()),this}static fromJson(t){const{formatType:r,lossy:n,progressive:o,preserveTransparency:i}=t;let a;return r?a=new this("f",r):a=new this("f"),o&&(o.mode?a.progressive(o.mode):a.progressive()),n&&a.lossy(),i&&a.preserveTransparency(),a}}class To{constructor(){this.actions=[]}addAction(t){let r;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";r=new ks(t)}else r=t;return this.actions.push(r),this}addTransformation(t){return t instanceof To?this.actions=this.actions.concat(t.actions):this.actions.push(new ks(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new so("q",t)),this}format(t){return this.addAction(new so("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new mv(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const r=new pa;let n=t;return typeof t=="string"&&(n=new lr(t)),r.addQualifier(n),this.addAction(r)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const r of this.actions){const n=r.toJson();if(vv(n))return n;t.push(n)}return{actions:t}}}class Pv extends To{}class Iv extends To{}function Dv(e){return e.match(/^https?:\//)}function Mv(e){return e.indexOf("/")<0}function Lv(e){return e.match(/^v[0-9]+/)}function Nv(e,t){const r=t.secure,n=t.privateCdn,o=t.cname,i=t.secureDistribution;return!r&&!o?`http://res.cloudinary.com/${e}`:r&&!i&&n?`https://${e}-res.cloudinary.com`:r&&!i?`https://res.cloudinary.com/${e}`:r&&i&&n?`https://${i}`:r&&i?`https://${i}/${e}`:!r&&o?`http://${o}/${e}`:"ERROR"}function Fv(e){return e||"image"}function zv(e){return e||"upload"}function Vv(e,t,r){const n=r!==!1;return t?`v${t}`:Lv(e)||Dv(e)||Mv(e)?"":n?"v1":""}function ha(e,t,r){let n=t>>0,o=String(r);return e.length>n?String(e):(n=n-e.length,n>o.length&&(o+=Bv(o,n/o.length)),o.slice(0,n)+String(e))}function Bv(e,t){let r=t,n="";for(;r>0;)n+=e,r--;return n}const Wv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",co={};let As=0;Wv.split("").forEach(e=>{let t=As.toString(2);t=ha(t,6,"0"),co[t]=e,As++});function Uv(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function Gv(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const r=+t;if(isNaN(r)||r<0)throw"Invalid version number provided";return ha(t,2,"0")}).join(".")}function Ts(e){let t="";const n=e.split(".").length*6,o=Uv(e),i=Gv(o);let s=parseInt(i.split(".").join("")).toString(2);if(s=ha(s,n,"0"),s.length%6!==0)throw"Version must be smaller than 43.21.26)";return s.match(/.{1,6}/g).forEach(c=>{t+=co[c]}),t}function qv(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}const Hv="1.21.0";function Yv(e){const[t,r]=e.split("."),n=parseInt(t).toString(2),o=parseInt(r).toString(2),i=n.padStart(6,"0"),a=o.padStart(6,"0");return co[i]+co[a]}function Qv(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function Kv(e){const t={techVersion:Qv(),sdkCode:"T",sdkSemver:Hv.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function Os(e){const t=Kv(e),r=qv(t);try{const n=Jv(r.techVersion),o=Ts(r.sdkSemver),i=Ts(n),a=Yv(r.osVersion),s=r.feature,c=r.sdkCode,{product:u,osType:f}=r;return`D${u}${c}${o}${i}${f}${a}${s}`}catch{return"E"}}function Jv(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const Rs={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class Xv{constructor(t,r={},n){this.setPublicID(t),this.setCloudConfig(r),this.setURLConfig(n)}setURLConfig(t){return this.urlConfig=new da(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,r=this.suffix&&this.suffix.indexOf("/")>=0;if(t||r)throw"`suffix`` should not include . or /"}getResourceType(){const t=Fv(this.assetType),r=zv(this.deliveryType),n=!!this.suffix,o=`${t}/${r}`,i=Rs[`${t}/${r}`],a=this.urlConfig.useRootPath,s=this.urlConfig.shorten;if(a){if(o==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${o} instead`)}if(s&&o==="image/upload")return"iu";if(n){if(i)return i;throw new Error(`URL Suffix only supported for ${Object.keys(Rs).join(", ")}, Provided: ${o} instead`)}return o}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,r){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=Nv(this.cloudName,this.urlConfig),o=t?t.toString():"",i=Vv(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[n,this.getResourceType(),this.getSignature(),o,i,a.replace(/,/g,"%2C"),this.suffix].filter(c=>c).join("/");{const s=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(o),i,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(f=>f).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),c=this.urlConfig.analytics!==!1&&!a.includes("?");let u="";if(typeof this.urlConfig.queryParams=="object")try{const f=new URLSearchParams(this.urlConfig.queryParams);c&&f.set("_a",Os(r)),u=f.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else u=this.urlConfig.queryParams||"",c&&(u+=`${u.length>0?"&":""}_a=${Os(r)}`);return u?`${s}?${u}`:s}}}class Dl extends Xv{constructor(t,r,n,o){super(t,r,n),this.transformation=o}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new so("q",t)),this}format(t){return this.addAction(new so("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class Zv extends Dl{constructor(t,r,n){super(t,r,n,new Pv)}}class eb extends Dl{constructor(t,r,n){super(t,r,n,new Iv),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class tb{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new Zv(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new eb(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const rb=({publicId:e,format:t="webp"})=>{const r=v.useMemo(()=>new tb({cloud:{cloudName:"fluid-attacks"}}),[]);return v.useMemo(()=>r.image(e).format(t),[r,e,t])},nb=({alt:e="img",height:t="",width:r="",plugins:n=[Tm(),bl()],publicId:o})=>{const i=rb({publicId:o});return b.jsx(av,{alt:e,cldImg:i,height:t,plugins:n,width:r})},En=v.memo(nb),js=({tag:e,tagPosition:t})=>e?b.jsx(Je,{alignItems:"center",bgColor:T.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:t==="top"?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:t==="top"?"absolute":"relative",top:"0",width:"max-content",children:b.jsx(ze,{color:T.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null,ob=({eventDate:e})=>{const t=rn(e)?null:e==null?void 0:e.split("-");if(t){const[r,n]=t;return b.jsxs(Je,{alignItems:"center",bgColor:T.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[b.jsx(mn,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r}),b.jsx(ze,{color:T.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:n.toUpperCase()})]})}return null},ib=X.div`
|
|
615
|
+
${({theme:e})=>`
|
|
616
|
+
align-items: flex-start;
|
|
617
|
+
display: flex;
|
|
618
|
+
flex-direction: column;
|
|
619
|
+
gap: ${e.spacing[1.5]};
|
|
620
|
+
width: 384px;
|
|
621
|
+
|
|
622
|
+
img {
|
|
623
|
+
height: 100%;
|
|
624
|
+
width: 100%;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
#card-image {
|
|
628
|
+
border-radius: ${e.spacing[1]};
|
|
629
|
+
height: 240px;
|
|
630
|
+
overflow: hidden;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
&:hover {
|
|
634
|
+
img {
|
|
635
|
+
transform: scale(1.2);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
> #card-content {
|
|
639
|
+
> .title-dark {
|
|
640
|
+
color: ${e.palette.gray[400]};
|
|
641
|
+
}
|
|
642
|
+
> .title-light {
|
|
643
|
+
background: ${e.palette.gradients["01"]};
|
|
644
|
+
background-clip: text;
|
|
645
|
+
-webkit-background-clip: text;
|
|
646
|
+
-webkit-text-fill-color: transparent;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
652
|
+
width: 320px;
|
|
653
|
+
|
|
654
|
+
#card-image {
|
|
655
|
+
height: 200px;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
`}
|
|
659
|
+
`,ab=({author:e,buttonText:t,description:r,eventDate:n,href:o,imageId:i,mode:a="light",publishDate:s,readingTime:c,tag:u,tagPosition:f="top",title:y})=>{const h=s==null?void 0:s.split("-"),g=a==="dark",x=b.jsxs(ib,{children:[i||n||u&&f==="top"?b.jsxs(Je,{id:"card-image",position:"relative",children:[i&&b.jsx(En,{publicId:i}),f==="top"&&b.jsx(js,{tag:u,tagPosition:f}),b.jsx(ob,{eventDate:n})]}):void 0,b.jsxs(Je,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[f==="bottom"&&b.jsx(js,{tag:u,tagPosition:f}),e||h||c?b.jsxs(Je,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&b.jsx(ze,{color:T.palette.gray[g?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${h[0]} ${h[1]}, ${h[2]}`}),c&&b.jsxs(Je,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[b.jsx(nt,{icon:"eye",iconColor:T.palette.gray[g?300:400],iconSize:"xs",iconType:"fa-light"}),b.jsx(ze,{color:T.palette.gray[g?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:c})]})]}):void 0,b.jsx(mn,{className:`title-${a}`,color:g?T.palette.white:T.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:y}),r&&b.jsx(ze,{color:T.palette.gray[g?100:600],size:"md",sizeSm:"sm",children:r}),t&&o&&b.jsx(xo,{href:o,mode:a,variant:"link",children:t})]})]});return o?b.jsx("a",{className:"flex w-fit",href:o,rel:"noopener noreferrer",target:"_self",children:x}):x},sb=X.form`
|
|
660
|
+
${({theme:e})=>`
|
|
661
|
+
align-items: center;
|
|
662
|
+
background: ${e.palette.gray[50]};
|
|
663
|
+
backdrop-filter: blur(11px);
|
|
664
|
+
border-radius: ${e.spacing[1]};
|
|
665
|
+
box-shadow: ${e.shadows.md};
|
|
666
|
+
display: flex;
|
|
667
|
+
flex-direction: column;
|
|
668
|
+
justify-content: center;
|
|
669
|
+
padding: ${e.spacing[3]} ${e.spacing[2]};
|
|
670
|
+
width: 628px;
|
|
671
|
+
|
|
672
|
+
&::before {
|
|
673
|
+
background: ${e.palette.gradients["02"]} border-box;
|
|
674
|
+
border-radius: ${e.spacing[1]};
|
|
675
|
+
content: "";
|
|
676
|
+
position: absolute;
|
|
677
|
+
inset: 0;
|
|
678
|
+
border: 2px solid transparent;
|
|
679
|
+
mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
680
|
+
mask-composite: exclude;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
684
|
+
width: 320px;
|
|
685
|
+
}
|
|
686
|
+
`}
|
|
687
|
+
`,cb=X.div`
|
|
688
|
+
align-items: flex-start;
|
|
689
|
+
align-self: stretch;
|
|
690
|
+
display: flex;
|
|
691
|
+
flex-direction: column;
|
|
692
|
+
gap: ${({theme:e})=>e.spacing[1.5]};
|
|
693
|
+
|
|
694
|
+
button[type="submit"] {
|
|
695
|
+
width: 100%;
|
|
696
|
+
|
|
697
|
+
> * {
|
|
698
|
+
text-align: center;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
`,lb=X.div`
|
|
702
|
+
${({theme:e})=>`
|
|
703
|
+
align-items: flex-start;
|
|
704
|
+
align-self: stretch;
|
|
705
|
+
container-type: inline-size;
|
|
706
|
+
display: flex;
|
|
707
|
+
flex-direction: row;
|
|
708
|
+
gap: ${e.spacing[1]};
|
|
709
|
+
position: relative;
|
|
710
|
+
|
|
711
|
+
&:has(> :nth-child(2)) {
|
|
712
|
+
> div {
|
|
713
|
+
display: flex;
|
|
714
|
+
width: 50%;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
719
|
+
flex-direction: column;
|
|
720
|
+
}
|
|
721
|
+
`}
|
|
722
|
+
`,ub=({children:e,name:t,onSubmit:r,submitDisabled:n,submitLabel:o="Submit"})=>b.jsx(sb,{"aria-label":t,name:t,onSubmit:r,children:b.jsxs(cb,{children:[e,b.jsx(xo,{disabled:n,type:"submit",children:o})]})}),db=X(pc)`
|
|
723
|
+
${({theme:e,$borderRadius:t="4px",$px:r=.5,$py:n=.5})=>`
|
|
724
|
+
--btn-spacing: ${t};
|
|
725
|
+
--btn-padding-x: ${e.spacing[r]};
|
|
726
|
+
--btn-padding-y: ${e.spacing[n]};
|
|
727
|
+
|
|
728
|
+
align-items: center;
|
|
729
|
+
line-height: 0;
|
|
730
|
+
text-align: center;
|
|
731
|
+
|
|
732
|
+
> span {
|
|
733
|
+
margin: 0 !important;
|
|
734
|
+
}
|
|
735
|
+
`}
|
|
736
|
+
`,fb=v.forwardRef(function({borderRadius:t,disabled:r,icon:n,iconColor:o,iconSize:i="xxs",iconType:a,id:s,justify:c="center",onClick:u,px:f,py:y,type:h="button",tooltip:g,tooltipPlace:x,value:S,variant:k="primary",..._},C){const P=b.jsx(db,{$borderRadius:t,$px:f,$py:y,$variant:k,"aria-label":s,borderRadius:t,disabled:r,id:s,justify:c,onClick:u,ref:C,type:h,value:S,..._,children:b.jsx(nt,{clickable:!1,icon:n,iconColor:o,iconSize:i,iconType:a})}),D=(h+(k??"")+(s??n)).replace(/ /u,"_");return g===void 0?P:b.jsx($n,{id:`${D}-tooltip`,place:x,tip:g,children:P})});var fr=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],pb="react-international-phone-",Ml=(...e)=>e.filter(t=>!!t).join(" ").trim(),hb=(...e)=>Ml(...e).split(" ").map(t=>`${pb}${t}`).join(" "),ht=({addPrefix:e,rawClassNames:t})=>Ml(hb(...e),...t),gb=({value:e,mask:t,maskSymbol:r,offset:n=0,trimNonMaskCharsLeftover:o=!1})=>{if(e.length<n)return e;let i=e.slice(0,n),a=e.slice(n),s=i,c=0;for(let u of t.split("")){if(c>=a.length){if(!o&&u!==r){s+=u;continue}break}u===r?(s+=a[c],c+=1):s+=u}return s},Rr=e=>e?/^\d+$/.test(e):!1,Oo=e=>e.replace(/\D/g,""),yb=(e,t)=>{let r=e.style.display;r!=="block"&&(e.style.display="block");let n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=o.top-n.top,a=n.bottom-o.bottom;i>=0&&a>=0||(Math.abs(i)<Math.abs(a)?e.scrollTop+=i:e.scrollTop-=a),e.style.display=r},mb=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),vb=(e,t)=>{let r=t.disableDialCodeAndPrefix?!1:t.forceDialCode,n=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,o=e,i=u=>t.trimNonDigitsEnd?u.trim():u;if(!o)return n&&!o.length||r?i(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):i(o);if(o=Oo(o),o===t.dialCode&&!t.disableDialCodeAndPrefix)return i(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(o)&&!t.disableDialCodeAndPrefix)return i(r?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${o}`);if(!o.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(r)return i(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(o.length<t.dialCode.length)return i(`${t.prefix}${o}`)}let a=()=>{let u=t.dialCode.length,f=o.slice(0,u),y=o.slice(u);return{phoneLeftSide:f,phoneRightSide:y}},{phoneLeftSide:s,phoneRightSide:c}=a();return s=`${t.prefix}${s}${t.charAfterDialCode}`,c=gb({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(s=""),i(`${s}${c}`)},bb=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:r,cursorPositionAfterInput:n,leftOffset:o=0,deletion:i})=>{if(n<o)return o;if(!e)return r.length;let a=null;for(let f=n-1;f>=0;f-=1)if(Rr(t[f])){a=f;break}if(a===null){for(let f=0;f<t.length;f+=1)if(Rr(r[f]))return f;return t.length}let s=0;for(let f=0;f<a;f+=1)Rr(t[f])&&(s+=1);let c=0,u=0;for(let f=0;f<r.length&&(c+=1,Rr(r[f])&&(u+=1),!(u>=s+1));f+=1);if(i!=="backward")for(;!Rr(r[c])&&c<r.length;)c+=1;return c},Hn=({phone:e,prefix:t})=>e?`${t}${Oo(e)}`:"";function Pi({value:e,country:t,insertDialCodeOnEmpty:r,trimNonDigitsEnd:n,countries:o,prefix:i,charAfterDialCode:a,forceDialCode:s,disableDialCodeAndPrefix:c,defaultMask:u,countryGuessingEnabled:f,disableFormatting:y}){let h=e;c&&(h=h.startsWith(`${i}`)?h:`${i}${t.dialCode}${h}`);let g=f?Ab({phone:h,countries:o,currentCountryIso2:t==null?void 0:t.iso2}):void 0,x=(g==null?void 0:g.country)??t,S=vb(h,{prefix:i,mask:Eb({phone:h,country:x,defaultMask:u,disableFormatting:y}),maskChar:Ll,dialCode:x.dialCode,trimNonDigitsEnd:n,charAfterDialCode:a,forceDialCode:s,insertDialCodeOnEmpty:r,disableDialCodeAndPrefix:c}),k=f&&!(g!=null&&g.fullDialCodeMatch)?t:x;return{phone:Hn({phone:c?`${k.dialCode}${S}`:S,prefix:i}),inputValue:S,country:k}}var wb=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},xb=(e,{country:t,insertDialCodeOnEmpty:r,phoneBeforeInput:n,prefix:o,charAfterDialCode:i,forceDialCode:a,disableDialCodeAndPrefix:s,countryGuessingEnabled:c,defaultMask:u,disableFormatting:f,countries:y})=>{let h=e.nativeEvent,g=h.inputType,x=wb(g),S=!!(g!=null&&g.startsWith("insertFrom")),k=g==="insertText",_=(h==null?void 0:h.data)||void 0,C=e.target.value,P=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:n,phone:Hn({phone:n,prefix:o}),cursorPosition:n.length,country:t};if(k&&!Rr(_)&&C!==o)return{inputValue:n,phone:Hn({phone:s?`${t.dialCode}${n}`:n,prefix:o}),cursorPosition:P-((_==null?void 0:_.length)??0),country:t};if(a&&!C.startsWith(`${o}${t.dialCode}`)&&!S){let z=C?n:`${o}${t.dialCode}${i}`;return{inputValue:z,phone:Hn({phone:z,prefix:o}),cursorPosition:o.length+t.dialCode.length+i.length,country:t}}let{phone:M,inputValue:D,country:A}=Pi({value:C,country:t,trimNonDigitsEnd:x==="backward",insertDialCodeOnEmpty:r,countryGuessingEnabled:c,countries:y,prefix:o,charAfterDialCode:i,forceDialCode:a,disableDialCodeAndPrefix:s,disableFormatting:f,defaultMask:u}),j=bb({cursorPositionAfterInput:P,phoneBeforeInput:n,phoneAfterInput:C,phoneAfterFormatted:D,leftOffset:a?o.length+t.dialCode.length+i.length:0,deletion:x});return{phone:M,inputValue:D,cursorPosition:j,country:A}},$b=(e,t)=>{let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o of r)if(e[o]!==t[o])return!1;return!0},_b=()=>{let e=v.useRef(),t=v.useRef(Date.now());return{check:()=>{let r=Date.now(),n=e.current?r-t.current:void 0;return e.current=t.current,t.current=r,n}}},Sb={size:20,overrideLastItemDebounceMS:-1};function Cb(e,t){let{size:r,overrideLastItemDebounceMS:n,onChange:o}={...Sb,...t},[i,a]=v.useState(e),[s,c]=v.useState([i]),[u,f]=v.useState(0),y=_b();return[i,(h,g)=>{if(typeof h=="object"&&typeof i=="object"&&$b(h,i)||h===i)return;let x=n>0,S=y.check(),k=x&&S!==void 0?S>n:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!k)c(_=>[..._.slice(0,u),h]);else{let _=s.length>=r;c(C=>[...C.slice(_?1:0,u+1),h]),_||f(C=>C+1)}a(h),o==null||o(h)},()=>{if(u<=0)return{success:!1};let h=s[u-1];return a(h),f(g=>g-1),o==null||o(h),{success:!0,value:h}},()=>{if(u+1>=s.length)return{success:!1};let h=s[u+1];return a(h),f(g=>g+1),o==null||o(h),{success:!0,value:h}}]}var Ll=".",zt={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:fr,preferredCountries:[]},Nl=({defaultCountry:e=zt.defaultCountry,value:t=zt.value,countries:r=zt.countries,prefix:n=zt.prefix,defaultMask:o=zt.defaultMask,charAfterDialCode:i=zt.charAfterDialCode,historySaveDebounceMS:a=zt.historySaveDebounceMS,disableCountryGuess:s=zt.disableCountryGuess,disableDialCodePrefill:c=zt.disableDialCodePrefill,forceDialCode:u=zt.forceDialCode,disableDialCodeAndPrefix:f=zt.disableDialCodeAndPrefix,disableFormatting:y=zt.disableFormatting,onChange:h,inputRef:g})=>{let x={countries:r,prefix:n,charAfterDialCode:i,forceDialCode:f?!1:u,disableDialCodeAndPrefix:f,defaultMask:o,countryGuessingEnabled:!s,disableFormatting:y},S=v.useRef(null),k=g||S,_=N=>{Promise.resolve().then(()=>{var J;typeof window>"u"||k.current!==(document==null?void 0:document.activeElement)||((J=k.current)==null||J.setSelectionRange(N,N))})},[{phone:C,inputValue:P,country:M},D,A,j]=Cb(()=>{let N=Pr({value:e,field:"iso2",countries:r});N||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let J=N||Pr({value:"us",field:"iso2",countries:r}),{phone:B,inputValue:re,country:W}=Pi({value:t,country:J,insertDialCodeOnEmpty:!c,...x});return _(re.length),{phone:B,inputValue:re,country:W.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:N,phone:J,country:B})=>{if(!h)return;let re=z(B);h({phone:J,inputValue:N,country:re})}}),z=v.useCallback(N=>Pr({value:N,field:"iso2",countries:r}),[r]),H=v.useMemo(()=>z(M),[M,z]);v.useEffect(()=>{let N=k.current;if(!N)return;let J=B=>{if(!B.key)return;let re=B.ctrlKey,W=B.metaKey,se=B.shiftKey;if(B.key.toLowerCase()==="z"){if(mb()){if(!W)return}else if(!re)return;se?j():A()}};return N.addEventListener("keydown",J),()=>{N.removeEventListener("keydown",J)}},[k,A,j]);let V=N=>{N.preventDefault();let{phone:J,inputValue:B,country:re,cursorPosition:W}=xb(N,{country:H,phoneBeforeInput:P,insertDialCodeOnEmpty:!1,...x});return D({inputValue:B,phone:J,country:re.iso2}),_(W),t},ie=(N,J={focusOnInput:!1})=>{let B=Pr({value:N,field:"iso2",countries:r});if(!B){console.error(`[react-international-phone]: can not find a country with "${N}" iso2 code`);return}let re=f?"":`${n}${B.dialCode}${i}`;D({inputValue:re,phone:`${n}${B.dialCode}`,country:B.iso2}),J.focusOnInput&&Promise.resolve().then(()=>{var W;(W=k.current)==null||W.focus()})},[he,ae]=v.useState(!1);return v.useEffect(()=>{if(!he){ae(!0),t!==C&&(h==null||h({inputValue:P,phone:C,country:H}));return}if(t===C)return;let{phone:N,inputValue:J,country:B}=Pi({value:t,country:H,insertDialCodeOnEmpty:!c,...x});D({phone:N,inputValue:J,country:B.iso2})},[t]),{phone:C,inputValue:P,country:H,setCountry:ie,handlePhoneValueChange:V,inputRef:k}},Eb=({phone:e,country:t,defaultMask:r="............",disableFormatting:n=!1})=>{let o=t.format,i=s=>n?s.replace(new RegExp(`[^${Ll}]`,"g"),""):s;if(!o)return i(r);if(typeof o=="string")return i(o);if(!o.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),i(r);let a=Object.keys(o).find(s=>{if(s==="default")return!1;if(!(s.charAt(0)==="/"&&s.charAt(s.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${s}" for ${t.iso2} is not valid`),!1;let c=new RegExp(s.substring(1,s.length-1)),u=e.replace(t.dialCode,"");return c.test(Oo(u))});return i(a?o[a]:o.default)},Vt=e=>{let[t,r,n,o,i,a]=e;return{name:t,iso2:r,dialCode:n,format:o,priority:i,areaCodes:a}},kb=e=>`Field "${e}" is not supported`,Pr=({field:e,value:t,countries:r=fr})=>{if(["priority"].includes(e))throw new Error(kb(e));let n=r.find(o=>{let i=Vt(o);return t===i[e]});if(n)return Vt(n)},Ab=({phone:e,countries:t=fr,currentCountryIso2:r})=>{var s;let n={country:void 0,fullDialCodeMatch:!1};if(!e)return n;let o=Oo(e);if(!o)return n;let i=n,a=({country:c,fullDialCodeMatch:u})=>{var h,g;let f=c.dialCode===((h=i.country)==null?void 0:h.dialCode),y=(c.priority??0)<(((g=i.country)==null?void 0:g.priority)??0);(!f||y)&&(i={country:c,fullDialCodeMatch:u})};for(let c of t){let u=Vt(c),{dialCode:f,areaCodes:y}=u;if(o.startsWith(f)){let h=i.country?Number(f)>=Number(i.country.dialCode):!0;if(y){let g=o.substring(f.length);for(let x of y)if(g.startsWith(x))return{country:u,fullDialCodeMatch:!0}}(h||f===o||!i.fullDialCodeMatch)&&a({country:u,fullDialCodeMatch:!0})}i.fullDialCodeMatch||o.length<f.length&&f.startsWith(o)&&(!i.country||Number(f)<=Number(i.country.dialCode))&&a({country:u,fullDialCodeMatch:!1})}if(r){let c=Pr({value:r,field:"iso2",countries:t});if(!c)return i;let u=c?(f=>{if(!(f!=null&&f.areaCodes))return!1;let y=o.substring(f.dialCode.length);return f.areaCodes.some(h=>h.startsWith(y))})(c):!1;i&&((s=i.country)==null?void 0:s.dialCode)===c.dialCode&&i.country!==c&&i.fullDialCodeMatch&&(!c.areaCodes||u)&&(i={country:c,fullDialCodeMatch:!0})}return i},Tb=(e,t)=>{let r=parseInt(e,16);return Number(r+t).toString(16)},Ob="abcdefghijklmnopqrstuvwxyz",Rb="1f1e6",Ps=Ob.split("").reduce((e,t,r)=>({...e,[t]:Tb(Rb,r)}),{}),jb=e=>[Ps[e[0]],Ps[e[1]]].join("-"),lo=({iso2:e,size:t,src:r,protocol:n="https",disableLazyLoading:o,className:i,style:a,...s})=>{if(!e)return v.createElement("img",{className:ht({addPrefix:["flag-emoji"],rawClassNames:[i]}),width:t,height:t,...s});let c=()=>{if(r)return r;let u=jb(e);return`${n}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${u}.svg`};return v.createElement("img",{className:ht({addPrefix:["flag-emoji"],rawClassNames:[i]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:o?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...s})},Pb=1e3,Ib=({show:e,dialCodePrefix:t="+",selectedCountry:r,countries:n=fr,preferredCountries:o=[],flags:i,onSelect:a,onClose:s,...c})=>{let u=v.useRef(null),f=v.useRef(),y=v.useMemo(()=>{if(!o||!o.length)return n;let A=[],j=[...n];for(let z of o){let H=j.findIndex(V=>Vt(V).iso2===z);if(H!==-1){let V=j.splice(H,1)[0];A.push(V)}}return A.concat(j)},[n,o]),h=v.useRef({updatedAt:void 0,value:""}),g=A=>{let j=h.current.updatedAt&&new Date().getTime()-h.current.updatedAt.getTime()>Pb;h.current={value:j?A:`${h.current.value}${A}`,updatedAt:new Date};let z=y.findIndex(H=>Vt(H).name.toLowerCase().startsWith(h.current.value));z!==-1&&k(z)},x=v.useCallback(A=>y.findIndex(j=>Vt(j).iso2===A),[y]),[S,k]=v.useState(x(r)),_=()=>{f.current!==r&&k(x(r))},C=v.useCallback(A=>{k(x(A.iso2)),a==null||a(A)},[a,x]),P=A=>{let j=y.length-1,z=H=>A==="prev"?H-1:A==="next"?H+1:A==="last"?j:0;k(H=>{let V=z(H);return V<0?0:V>j?j:V})},M=A=>{if(A.stopPropagation(),A.key==="Enter"){A.preventDefault();let j=Vt(y[S]);C(j);return}if(A.key==="Escape"){s==null||s();return}if(A.key==="ArrowUp"){A.preventDefault(),P("prev");return}if(A.key==="ArrowDown"){A.preventDefault(),P("next");return}if(A.key==="PageUp"){A.preventDefault(),P("first");return}if(A.key==="PageDown"){A.preventDefault(),P("last");return}A.key===" "&&A.preventDefault(),A.key.length===1&&!A.altKey&&!A.ctrlKey&&!A.metaKey&&g(A.key.toLocaleLowerCase())},D=v.useCallback(()=>{if(!u.current||S===void 0)return;let A=Vt(y[S]).iso2;if(A===f.current)return;let j=u.current.querySelector(`[data-country="${A}"]`);j&&(yb(u.current,j),f.current=A)},[S,y]);return v.useEffect(()=>{D()},[S,D]),v.useEffect(()=>{u.current&&(e?u.current.focus():_())},[e]),v.useEffect(()=>{_()},[r]),v.createElement("ul",{ref:u,role:"listbox",className:ht({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:M,onBlur:s,tabIndex:-1,"aria-activedescendant":`react-international-phone__${Vt(y[S]).iso2}-option`},y.map((A,j)=>{let z=Vt(A),H=z.iso2===r,V=j===S,ie=o.includes(z.iso2),he=j===o.length-1,ae=i==null?void 0:i.find(N=>N.iso2===z.iso2);return v.createElement(v.Fragment,{key:z.iso2},v.createElement("li",{"data-country":z.iso2,role:"option","aria-selected":H,"aria-label":`${z.name} ${t}${z.dialCode}`,id:`react-international-phone__${z.iso2}-option`,className:ht({addPrefix:["country-selector-dropdown__list-item",ie&&"country-selector-dropdown__list-item--preferred",H&&"country-selector-dropdown__list-item--selected",V&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>C(z),style:c.listItemStyle,title:z.name},v.createElement(lo,{iso2:z.iso2,src:ae==null?void 0:ae.src,className:ht({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),v.createElement("span",{className:ht({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},z.name),v.createElement("span",{className:ht({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,z.dialCode)),he?v.createElement("hr",{className:ht({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},Db=({selectedCountry:e,onSelect:t,disabled:r,hideDropdown:n,countries:o=fr,preferredCountries:i=[],flags:a,renderButtonWrapper:s,...c})=>{let[u,f]=v.useState(!1),y=v.useMemo(()=>{if(e)return Pr({value:e,field:"iso2",countries:o})},[o,e]),h=v.useRef(null),g=S=>{S.key&&["ArrowUp","ArrowDown"].includes(S.key)&&(S.preventDefault(),f(!0))},x=()=>{var _;let S={title:y==null?void 0:y.name,onClick:()=>f(C=>!C),onMouseDown:C=>C.preventDefault(),onKeyDown:g,disabled:n||r,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":u},k=v.createElement("div",{className:ht({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},v.createElement(lo,{iso2:e,src:(_=a==null?void 0:a.find(C=>C.iso2===e))==null?void 0:_.src,className:ht({addPrefix:["country-selector-button__flag-emoji",r&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!n&&v.createElement("div",{className:ht({addPrefix:["country-selector-button__dropdown-arrow",r&&"country-selector-button__dropdown-arrow--disabled",u&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return s?s({children:k,rootProps:S}):v.createElement("button",{...S,type:"button",className:ht({addPrefix:["country-selector-button",u&&"country-selector-button--active",r&&"country-selector-button--disabled",n&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},k)};return v.createElement("div",{className:ht({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:h},x(),v.createElement(Ib,{show:u,countries:o,preferredCountries:i,flags:a,onSelect:S=>{f(!1),t==null||t(S)},selectedCountry:e,onClose:()=>{f(!1)},...c.dropdownStyleProps}))},Mb=({dialCode:e,prefix:t,disabled:r,style:n,className:o})=>v.createElement("div",{className:ht({addPrefix:["dial-code-preview",r&&"dial-code-preview--disabled"],rawClassNames:[o]}),style:n},`${t}${e}`);v.forwardRef(({value:e,onChange:t,countries:r=fr,preferredCountries:n=[],hideDropdown:o,showDisabledDialCodeAndPrefix:i,disableFocusAfterCountrySelect:a,flags:s,style:c,className:u,inputStyle:f,inputClassName:y,countrySelectorStyleProps:h,dialCodePreviewStyleProps:g,inputProps:x,placeholder:S,disabled:k,name:_,onFocus:C,onBlur:P,required:M,autoFocus:D,...A},j)=>{let{phone:z,inputValue:H,inputRef:V,country:ie,setCountry:he,handlePhoneValueChange:ae}=Nl({value:e,countries:r,...A,onChange:J=>{t==null||t(J.phone,{country:J.country,inputValue:J.inputValue})}}),N=A.disableDialCodeAndPrefix&&i&&(ie==null?void 0:ie.dialCode);return v.useImperativeHandle(j,()=>V.current?Object.assign(V.current,{setCountry:he,state:{phone:z,inputValue:H,country:ie}}):null,[V,he,z,H,ie]),v.createElement("div",{ref:j,className:ht({addPrefix:["input-container"],rawClassNames:[u]}),style:c},v.createElement(Db,{onSelect:J=>he(J.iso2,{focusOnInput:!a}),flags:s,selectedCountry:ie.iso2,countries:r,preferredCountries:n,disabled:k,hideDropdown:o,...h}),N&&v.createElement(Mb,{dialCode:ie.dialCode,prefix:A.prefix??"+",disabled:k,...g}),v.createElement("input",{onChange:ae,value:H,type:"tel",ref:V,className:ht({addPrefix:["input",k&&"input--disabled"],rawClassNames:[y]}),placeholder:S,disabled:k,style:f,name:_,onFocus:C,onBlur:P,autoFocus:D,required:M,...x}))});const Lb=X.div`
|
|
592
737
|
${({theme:e})=>`
|
|
593
738
|
align-items: flex-start;
|
|
594
739
|
align-self: stretch;
|
|
@@ -629,11 +774,15 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
629
774
|
}
|
|
630
775
|
}
|
|
631
776
|
|
|
777
|
+
@container (width < 320px) or (width < 600px) {
|
|
778
|
+
width: 100%;
|
|
779
|
+
}
|
|
780
|
+
|
|
632
781
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
633
782
|
width: 250px;
|
|
634
783
|
}
|
|
635
784
|
`}
|
|
636
|
-
`,
|
|
785
|
+
`,Nb=X.button`
|
|
637
786
|
${({theme:e})=>`
|
|
638
787
|
align-items: center;
|
|
639
788
|
background: inherit;
|
|
@@ -649,7 +798,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
649
798
|
cursor: not-allowed;
|
|
650
799
|
}
|
|
651
800
|
`}
|
|
652
|
-
`,
|
|
801
|
+
`,Fb=X.ul`
|
|
653
802
|
${({theme:e})=>`
|
|
654
803
|
align-items: flex-start;
|
|
655
804
|
box-shadow: ${e.shadows.md};
|
|
@@ -666,7 +815,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
666
815
|
max-height: 150px;
|
|
667
816
|
}
|
|
668
817
|
`}
|
|
669
|
-
`,
|
|
818
|
+
`,zb=X.li`
|
|
670
819
|
${({theme:e})=>`
|
|
671
820
|
align-items: center;
|
|
672
821
|
background: ${e.palette.white};
|
|
@@ -689,14 +838,14 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
689
838
|
width: 160px;
|
|
690
839
|
}
|
|
691
840
|
`}
|
|
692
|
-
`,
|
|
841
|
+
`,Vb=X.p`
|
|
693
842
|
color: ${({theme:e})=>e.palette.gray[800]};
|
|
694
843
|
font-size: inherit;
|
|
695
844
|
min-width: 55%;
|
|
696
845
|
overflow: hidden;
|
|
697
846
|
text-overflow: ellipsis;
|
|
698
847
|
white-space: nowrap;
|
|
699
|
-
`,
|
|
848
|
+
`,Bb=({htmlFor:e,label:t,mode:r="light",required:n,tooltip:o})=>{const i=`${e}-tooltip`,a=o!==void 0&&!rn(o);return b.jsxs("label",{className:`flex gap-1 w-full ${r}`,htmlFor:e,children:[t,n&&b.jsx(nt,{icon:"asterisk",iconColor:T.palette.error[500],iconSize:"xxs"}),a?b.jsx($n,{icon:"circle-info",id:i,place:"right",tip:o}):null]})},Wb=X.div`
|
|
700
849
|
${({theme:e})=>`
|
|
701
850
|
align-items: flex-start;
|
|
702
851
|
display: inline-flex;
|
|
@@ -723,7 +872,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
723
872
|
}
|
|
724
873
|
}
|
|
725
874
|
`}
|
|
726
|
-
`,
|
|
875
|
+
`,Fl=X.div`
|
|
727
876
|
${({theme:e})=>`
|
|
728
877
|
align-items: center;
|
|
729
878
|
display: flex;
|
|
@@ -800,11 +949,15 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
800
949
|
}
|
|
801
950
|
}
|
|
802
951
|
|
|
952
|
+
@container (width < 320px) or (width < 600px) {
|
|
953
|
+
width: 100%;
|
|
954
|
+
}
|
|
955
|
+
|
|
803
956
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
804
957
|
width: 250px;
|
|
805
958
|
}
|
|
806
959
|
`}
|
|
807
|
-
`,
|
|
960
|
+
`,ga=({children:e,error:t,htmlFor:r,label:n,mode:o,required:i,tooltip:a})=>b.jsxs(Wb,{children:[n===void 0?void 0:b.jsx(Bb,{htmlFor:r,label:n,mode:o,required:i,tooltip:a}),e,t?b.jsx(ze,{className:"error-msg",color:T.palette.error[500],display:"block",lineSpacing:1,size:"sm",sizeSm:"xs",children:t}):void 0]}),Ub=({disabled:e,error:t,id:r,label:n,mode:o="light",name:i,required:a,tooltip:s,value:c,...u})=>{const[f,y]=v.useState(!1),[h,g]=v.useState(""),x=v.useRef(null),{refs:S,floatingStyles:k}=Sf({placement:"bottom-start",whileElementsMounted:_c}),{inputValue:_,handlePhoneValueChange:C,inputRef:P,country:M,setCountry:D}=Nl({countries:fr,defaultCountry:"us",value:c?String(c):void 0}),A=v.useCallback(()=>{y(V=>!V),f||g("")},[f]),j=v.useCallback(V=>()=>{D(V),y(!1),g("")},[D,y]),z=v.useCallback(V=>{V.key.length===1?g(ie=>ie+V.key):V.key==="Backspace"&&g(ie=>ie.slice(0,-1))},[]),H=fr.filter(V=>{const{name:ie}=Vt(V);return ie.toLowerCase().includes(h.toLowerCase())});return Il(S.floating.current,()=>{y(!1),g("")},!0),b.jsx(ga,{error:t,htmlFor:r,label:n,mode:o,required:a,tooltip:s,children:b.jsxs(Lb,{className:`${e?"disabled":""} ${t?"error":""}`,ref:x,children:[b.jsxs(Nb,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:A,onKeyDown:z,ref:S.setReference,children:[b.jsx(lo,{iso2:M.iso2,size:"16px"}),b.jsx(nt,{icon:"angle-down",iconColor:T.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),b.jsxs(Fl,{className:`light ${e?"disabled":""} ${t?"error":""}`,children:[b.jsx("input",{"aria-hidden":!1,"aria-invalid":t?"true":"false","aria-label":i??r,"aria-required":a,autoComplete:"off","data-testid":`${i??r}-input`,disabled:e,id:r,name:i,onChange:C,ref:P,type:"tel",value:_,...u}),t?b.jsx(nt,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0]}),f&&Ii.createPortal(b.jsx(Fb,{ref:S.setFloating,style:k,children:H.map(V=>{const{dialCode:ie,iso2:he,name:ae}=Vt(V);return b.jsxs(zb,{onClick:j(he),value:he,children:[b.jsx(lo,{iso2:he,size:"16px"}),b.jsx(Vb,{children:ae}),b.jsx(ze,{color:T.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+ie})]},he)})}),document.getElementById("root")??document.body)]})})},Gb=v.forwardRef(function({disabled:t,error:r,id:n,label:o,mode:i="light",name:a,required:s,tooltip:c,type:u="text",...f},y){return b.jsx(ga,{error:r,htmlFor:n,label:o,mode:i,required:s,tooltip:c,children:b.jsxs(Fl,{className:`${i} ${t?"disabled":""} ${r?"error":""}`,children:[b.jsx("input",{"aria-hidden":!1,"aria-invalid":r?"true":"false","aria-label":a??n,"aria-required":s,autoComplete:"off","data-testid":`${a??n}-input`,disabled:t,id:n,name:a,ref:y,type:u,...f}),r?b.jsx(nt,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0]})})}),qb=X.button`
|
|
808
961
|
${({theme:e})=>`
|
|
809
962
|
align-items: center;
|
|
810
963
|
border-left: 3px solid transparent;
|
|
@@ -847,7 +1000,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
847
1000
|
}
|
|
848
1001
|
}
|
|
849
1002
|
`}
|
|
850
|
-
`,
|
|
1003
|
+
`,Hb=X.div`
|
|
851
1004
|
${({theme:e})=>`
|
|
852
1005
|
align-items: center;
|
|
853
1006
|
background-color: transparent;
|
|
@@ -877,7 +1030,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
877
1030
|
color: ${e.palette.gray[800]};
|
|
878
1031
|
}
|
|
879
1032
|
`}
|
|
880
|
-
`,
|
|
1033
|
+
`,Yb=X.div`
|
|
881
1034
|
${({theme:e})=>`
|
|
882
1035
|
background-color: ${e.palette.white};
|
|
883
1036
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
@@ -892,7 +1045,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
892
1045
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
893
1046
|
}
|
|
894
1047
|
`}
|
|
895
|
-
`,
|
|
1048
|
+
`,Qb=X.div`
|
|
896
1049
|
${({theme:e})=>`
|
|
897
1050
|
align-items: flex-start;
|
|
898
1051
|
cursor: pointer;
|
|
@@ -914,13 +1067,13 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
914
1067
|
}
|
|
915
1068
|
}
|
|
916
1069
|
`}
|
|
917
|
-
`,
|
|
1070
|
+
`,Kb=({disabled:e=!1,mode:t,onClick:r,text:n})=>b.jsx(qb,{className:`${e&&"disabled"} ${t}`,disabled:e,onClick:r,children:b.jsx(ze,{color:"inherit",size:"sm",sizeSm:"xs",children:n})}),Jb=[{text:"EN"},{text:"ES"}],Xb=({items:e,handleClick:t,mode:r="light"})=>{const n=e??Jb,[o,i]=v.useState(n[0].text),a=v.useCallback(s=>()=>{t(s.text),i(s.text)},[t]);return b.jsxs(Qb,{children:[b.jsxs(Hb,{className:r,children:[b.jsx(nt,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),o]}),b.jsx(Yb,{children:n.map((s,c)=>b.jsx(Kb,{disabled:s.disabled,mode:r,onClick:a(s),text:s.text},`${s.text}_${c}`))})]})},Zb={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"}},e0=({publicId:e,variant:t})=>b.jsx(Je,{...Zb[t],children:b.jsx(En,{alt:"logo",publicId:e})}),t0=X.div`
|
|
918
1071
|
display: flex;
|
|
919
1072
|
height: 80px;
|
|
920
1073
|
max-width: 1440px;
|
|
921
1074
|
overflow: hidden;
|
|
922
1075
|
position: relative;
|
|
923
|
-
`,
|
|
1076
|
+
`,Is=X.rect`
|
|
924
1077
|
height: 79px;
|
|
925
1078
|
width: 64px;
|
|
926
1079
|
flex-shrink: 0;
|
|
@@ -944,7 +1097,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
944
1097
|
);
|
|
945
1098
|
right: 0;
|
|
946
1099
|
}
|
|
947
|
-
`,
|
|
1100
|
+
`,r0=X.div`
|
|
948
1101
|
display: flex;
|
|
949
1102
|
gap: 40px;
|
|
950
1103
|
animation: clients-animation 50s linear infinite;
|
|
@@ -959,7 +1112,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
959
1112
|
transform: translateX(calc(-180px * 15));
|
|
960
1113
|
}
|
|
961
1114
|
}
|
|
962
|
-
`,
|
|
1115
|
+
`,n0=["airs/clients-carousel/color/bancolombia","airs/clients-carousel/color/itau_colombia","airs/clients-carousel/color/lulo_bank","airs/clients-carousel/color/oxxo_international","airs/clients-carousel/color/interbank","airs/clients-carousel/color/global_bank","airs/clients-carousel/color/gesa","airs/clients-carousel/color/copa_airlines","airs/clients-carousel/color/consubanco","airs/clients-carousel/color/bantrab","airs/clients-carousel/color/banistmo","airs/clients-carousel/color/banco_internacional","airs/clients-carousel/color/banco_general","airs/clients-carousel/color/banbif","airs/clients-carousel/color/avianca"],o0=({fusion:e=!1,logos:t=n0})=>b.jsxs(t0,{children:[e&&b.jsx(Is,{className:"left"}),b.jsx(r0,{children:[...t,...t].map((r,n)=>b.jsx(En,{alt:`${r}-${n}`,height:"80px",plugins:[bl()],publicId:r,width:"140px"},`${r}-${n}`))}),e&&b.jsx(Is,{className:"right"})]}),i0=X.button`
|
|
963
1116
|
align-items: center;
|
|
964
1117
|
background-color: transparent;
|
|
965
1118
|
border: unset;
|
|
@@ -970,13 +1123,13 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
970
1123
|
padding: 0;
|
|
971
1124
|
|
|
972
1125
|
&:hover p {
|
|
973
|
-
color: ${
|
|
1126
|
+
color: ${T.palette.primary[200]};
|
|
974
1127
|
}
|
|
975
1128
|
|
|
976
1129
|
&:hover span {
|
|
977
|
-
color: ${
|
|
1130
|
+
color: ${T.palette.primary[200]};
|
|
978
1131
|
}
|
|
979
|
-
`,
|
|
1132
|
+
`,a0=e=>e==="platform"?{normal:"sm",small:void 0}:{normal:"md",small:"sm"},s0=({message:e,onClickButton:t,buttonText:r,buttonFontWeight:n="regular",icon:o,onClose:i,variant:a="web"})=>{const[s,c]=v.useState(!0),u=v.useCallback(()=>{c(!1),i==null||i()},[i]),f=a0(a);return b.jsxs(Je,{alignItems:"center",bgGradient:T.palette.gradients["01"],display:s?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[b.jsxs(Je,{display:"flex",gap:.5,justify:"center",width:"100%",children:[b.jsx(Je,{children:typeof e=="string"?b.jsx(ze,{color:T.palette.white,display:"inline",size:f.normal,sizeSm:f.small,children:e}):e}),t?b.jsxs(i0,{onClick:t,children:[b.jsx(ze,{color:T.palette.white,fontWeight:n,size:f.normal,sizeSm:f.small,textDecoration:"underline",children:r}),b.jsx(nt,{icon:o??"arrow-right",iconColor:T.palette.white,iconSize:"xs",iconType:n==="bold"?"fa-regular":"fa-light"})]}):void 0]}),b.jsx(nt,{clickable:!0,hoverColor:T.palette.primary[200],icon:"close",iconColor:T.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},c0=X(yn)`
|
|
980
1133
|
${({theme:e,$variant:t})=>`
|
|
981
1134
|
align-items: center;
|
|
982
1135
|
background: ${t==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
@@ -989,26 +1142,26 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
989
1142
|
width: ${e.spacing[.5]};
|
|
990
1143
|
height: ${e.spacing[.5]};
|
|
991
1144
|
`}
|
|
992
|
-
`,
|
|
1145
|
+
`,l0=X.div`
|
|
993
1146
|
align-items: center;
|
|
994
1147
|
color: ${({theme:e})=>e.palette.white};
|
|
995
1148
|
display: flex;
|
|
996
1149
|
font-size: 6px;
|
|
997
1150
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
998
1151
|
justify-content: center;
|
|
999
|
-
`,
|
|
1152
|
+
`,zl=v.forwardRef(function({numberIndicator:t,show:r,variant:n="error",...o},i){return b.jsx(c0,{$variant:n,className:r?"flex":"hidden","data-testid":"notification-sign",ref:i,...o,children:t&&b.jsx(l0,{children:t<=9?t:9})})}),Ds={web:{normal:T.typography.text.md,sm:T.typography.text.sm},platform:{normal:T.typography.text.sm,sm:T.typography.text.sm}},u0=X.label`
|
|
1000
1153
|
${({$disabled:e,$variant:t})=>{const r=e?300:600,n=e?"not-allowed":"pointer";return`
|
|
1001
1154
|
display: flex;
|
|
1002
1155
|
align-items: center;
|
|
1003
|
-
font-family: ${
|
|
1004
|
-
font-size: ${
|
|
1005
|
-
font-weight: ${
|
|
1006
|
-
line-height: ${
|
|
1156
|
+
font-family: ${T.typography.type.primary};
|
|
1157
|
+
font-size: ${Ds[t].normal};
|
|
1158
|
+
font-weight: ${T.typography.weight.regular};
|
|
1159
|
+
line-height: ${T.typography.text.lg};
|
|
1007
1160
|
text-align: left;
|
|
1008
1161
|
position: relative;
|
|
1009
1162
|
cursor: ${n};
|
|
1010
|
-
color: ${
|
|
1011
|
-
gap: ${
|
|
1163
|
+
color: ${T.palette.gray[r]};
|
|
1164
|
+
gap: ${T.spacing[.5]};
|
|
1012
1165
|
|
|
1013
1166
|
input {
|
|
1014
1167
|
position: absolute;
|
|
@@ -1023,30 +1176,30 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1023
1176
|
left: 0;
|
|
1024
1177
|
height: 16px;
|
|
1025
1178
|
width: 16px;
|
|
1026
|
-
background-color: ${
|
|
1179
|
+
background-color: ${T.palette.white};
|
|
1027
1180
|
border-radius: 50%;
|
|
1028
|
-
border: 1px solid ${
|
|
1181
|
+
border: 1px solid ${T.palette.gray[600]};
|
|
1029
1182
|
}
|
|
1030
1183
|
|
|
1031
1184
|
input:disabled ~ .checkmark {
|
|
1032
|
-
border: 1px solid ${
|
|
1033
|
-
background-color: ${
|
|
1185
|
+
border: 1px solid ${T.palette.gray[300]};
|
|
1186
|
+
background-color: ${T.palette.white};
|
|
1034
1187
|
cursor: not-allowed;
|
|
1035
1188
|
}
|
|
1036
1189
|
|
|
1037
1190
|
input:not(:disabled):checked ~ .checkmark {
|
|
1038
|
-
background-color: ${
|
|
1039
|
-
border: 1px solid ${
|
|
1191
|
+
background-color: ${T.palette.white};
|
|
1192
|
+
border: 1px solid ${T.palette.primary[500]};
|
|
1040
1193
|
}
|
|
1041
1194
|
|
|
1042
1195
|
input:not(:disabled):hover ~ .checkmark {
|
|
1043
|
-
background-color: ${
|
|
1044
|
-
box-shadow: 0 0 0 4px ${
|
|
1196
|
+
background-color: ${T.palette.white};
|
|
1197
|
+
box-shadow: 0 0 0 4px ${T.palette.gray[100]};
|
|
1045
1198
|
}
|
|
1046
1199
|
|
|
1047
1200
|
input:not(:disabled):hover:checked ~ .checkmark {
|
|
1048
|
-
background-color: ${
|
|
1049
|
-
box-shadow: 0 0 0 4px ${
|
|
1201
|
+
background-color: ${T.palette.white};
|
|
1202
|
+
box-shadow: 0 0 0 4px ${T.palette.primary[50]};
|
|
1050
1203
|
}
|
|
1051
1204
|
|
|
1052
1205
|
.checkmark::after {
|
|
@@ -1058,7 +1211,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1058
1211
|
width: 8px;
|
|
1059
1212
|
height: 8px;
|
|
1060
1213
|
border-radius: 50%;
|
|
1061
|
-
background: ${
|
|
1214
|
+
background: ${T.palette.primary[500]};
|
|
1062
1215
|
}
|
|
1063
1216
|
|
|
1064
1217
|
input:checked ~ .checkmark::after {
|
|
@@ -1066,14 +1219,14 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1066
1219
|
}
|
|
1067
1220
|
|
|
1068
1221
|
input:disabled:checked ~ .checkmark::after {
|
|
1069
|
-
background-color: ${
|
|
1222
|
+
background-color: ${T.palette.gray[300]};
|
|
1070
1223
|
}
|
|
1071
1224
|
|
|
1072
|
-
@media screen and (max-width: ${
|
|
1073
|
-
font-size: ${
|
|
1225
|
+
@media screen and (max-width: ${T.breakpoints.mobile}) {
|
|
1226
|
+
font-size: ${Ds[t].sm};
|
|
1074
1227
|
}
|
|
1075
1228
|
`}}
|
|
1076
|
-
`,
|
|
1229
|
+
`,d0=X.span.attrs({className:"checkmark"})``,f0=({defaultChecked:e=!1,disabled:t=!1,label:r,name:n,onChange:o,onClick:i,value:a,variant:s="web"})=>b.jsxs(u0,{$disabled:t,$variant:s,children:[b.jsx("input",{"aria-label":n,defaultChecked:e,disabled:t,name:n,onChange:o,onClick:i,type:"radio",value:a}),b.jsx(d0,{}),r??null]}),p0=X.a`
|
|
1077
1230
|
${({theme:e})=>`
|
|
1078
1231
|
align-items: center;
|
|
1079
1232
|
display: flex;
|
|
@@ -1118,7 +1271,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1118
1271
|
width: 270px;
|
|
1119
1272
|
}
|
|
1120
1273
|
`}
|
|
1121
|
-
`,
|
|
1274
|
+
`,h0=X.div.attrs({className:"icon-wrap"})`
|
|
1122
1275
|
${({theme:e})=>`
|
|
1123
1276
|
align-items: center;
|
|
1124
1277
|
background: ${e.palette.primary[25]};
|
|
@@ -1133,7 +1286,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1133
1286
|
font-size: 20px;
|
|
1134
1287
|
}
|
|
1135
1288
|
`}
|
|
1136
|
-
`,
|
|
1289
|
+
`,g0=X.div`
|
|
1137
1290
|
${({theme:e})=>`
|
|
1138
1291
|
align-items: flex-start;
|
|
1139
1292
|
display: flex;
|
|
@@ -1165,7 +1318,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1165
1318
|
width: 320px;
|
|
1166
1319
|
}
|
|
1167
1320
|
`}
|
|
1168
|
-
`,
|
|
1321
|
+
`,y0=X.form`
|
|
1169
1322
|
${({theme:e})=>`
|
|
1170
1323
|
align-items: center;
|
|
1171
1324
|
display: flex;
|
|
@@ -1174,7 +1327,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1174
1327
|
padding: ${e.spacing[1]} ${e.spacing[1.5]};
|
|
1175
1328
|
width: 100%;
|
|
1176
1329
|
`}
|
|
1177
|
-
`,
|
|
1330
|
+
`,m0=X.input`
|
|
1178
1331
|
${({theme:e})=>`
|
|
1179
1332
|
flex: 1 0 0;
|
|
1180
1333
|
border: none;
|
|
@@ -1200,7 +1353,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1200
1353
|
font-size: ${e.typography.text.sm};
|
|
1201
1354
|
}
|
|
1202
1355
|
`}
|
|
1203
|
-
`,
|
|
1356
|
+
`,v0=X.button`
|
|
1204
1357
|
${({theme:e})=>`
|
|
1205
1358
|
align-items: center;
|
|
1206
1359
|
border-radius: ${e.spacing[.5]};
|
|
@@ -1220,7 +1373,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1220
1373
|
background-color: ${e.palette.gray[100]};
|
|
1221
1374
|
}
|
|
1222
1375
|
`}
|
|
1223
|
-
`,
|
|
1376
|
+
`,ei=X.div.attrs({className:"dropdown"})`
|
|
1224
1377
|
${({theme:e,$empty:t=!1,$showHits:r=!1})=>`
|
|
1225
1378
|
align-items: flex-start;
|
|
1226
1379
|
align-self: stretch;
|
|
@@ -1263,7 +1416,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1263
1416
|
height: ${e.spacing[.5]};
|
|
1264
1417
|
}
|
|
1265
1418
|
`}
|
|
1266
|
-
`,
|
|
1419
|
+
`,ti=({hit:e,icon:t="infinity",showIcon:r=!1})=>{const{slug:n,title:o}=e,i=String(n).startsWith("/pages/")?String(n).replace("/pages/","/"):String(n);return b.jsxs(p0,{href:i,rel:"nofollow noopener noreferrer",children:[r&&b.jsx(h0,{children:b.jsx(nt,{icon:t,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),b.jsx(ze,{color:T.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(o)})]})},b0=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],Ms={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},w0=({items:e,placeholder:t="Search",refine:r,query:n})=>{const[o,i]=v.useState(n),[a,s]=v.useState(!1),c=v.useRef(null),u=v.useRef(null),f=o.length>=2,y=v.useCallback(_=>{i(_),r(_)},[r]),h=v.useCallback(()=>{y("")},[y]),g=v.useCallback(()=>{s(!0)},[]),x=v.useCallback(_=>{y(_.currentTarget.value)},[y]),S=v.useCallback(_=>{_.preventDefault(),_.stopPropagation(),h(),u.current&&u.current.focus()},[h]),k=v.useCallback(_=>{_.preventDefault(),_.stopPropagation(),u.current&&u.current.blur()},[]);return Il(c.current,()=>{h(),s(!1)},!0),b.jsxs(g0,{ref:c,children:[b.jsxs(y0,{action:"",noValidate:!0,onReset:S,onSubmit:k,role:"search",children:[b.jsxs("div",{className:"flex gap-2 w-full",children:[b.jsx("div",{className:"h-10 p-2",children:b.jsx(nt,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),b.jsx(m0,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:x,onFocus:g,placeholder:t,ref:u,spellCheck:!1,type:"search",value:o})]}),f&&b.jsx(v0,{type:"reset",children:b.jsx(nt,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),a&&o.length<2&&b.jsxs(ei,{children:[b.jsx(ze,{color:T.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),b.jsx("div",{className:"flex flex-col items-start self-stretch",children:b0.map(({hit:_,icon:C},P)=>b.jsx(ti,{hit:_,icon:C,showIcon:!0},`${C}-${P}`))}),b.jsx(ze,{color:T.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),b.jsx(ti,{hit:Ms.hit,icon:Ms.icon,showIcon:!0})]}),f&&e.length>0&&b.jsxs(ei,{$showHits:f,children:[b.jsx(ze,{color:T.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),b.jsx("div",{className:"flex flex-col items-start self-stretch",children:e.map(_=>b.jsx(ti,{hit:_},_.objectID))})]}),f&&e.length===0&&b.jsx(ei,{$empty:e.length===0,children:b.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[b.jsx(En,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),b.jsx(mn,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),b.jsxs(ze,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${o}” did not match.`,b.jsx("br",{}),"Please try again."]}),b.jsx(xo,{mode:"light",onClick:h,variant:"secondaryWeb",children:"Clear search"})]})})]})},x0=X.button`
|
|
1267
1420
|
${({theme:e})=>`
|
|
1268
1421
|
align-items: center;
|
|
1269
1422
|
color: ${e.palette.gray[500]};
|
|
@@ -1283,7 +1436,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1283
1436
|
color: ${e.palette.gray[800]};
|
|
1284
1437
|
}
|
|
1285
1438
|
`}
|
|
1286
|
-
|
|
1439
|
+
`,$0=X.div`
|
|
1287
1440
|
${({theme:e})=>`
|
|
1288
1441
|
align-items: center;
|
|
1289
1442
|
border-bottom: 2px solid ${e.palette.gray[200]};
|
|
@@ -1292,7 +1445,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1292
1445
|
height: ${e.spacing[3]};
|
|
1293
1446
|
width: max-content;
|
|
1294
1447
|
`}
|
|
1295
|
-
`,
|
|
1448
|
+
`,_0=X(Kl.NavLink)`
|
|
1296
1449
|
${({theme:e})=>`
|
|
1297
1450
|
align-items: center;
|
|
1298
1451
|
background: transparent;
|
|
@@ -1329,7 +1482,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1329
1482
|
}
|
|
1330
1483
|
}
|
|
1331
1484
|
`}
|
|
1332
|
-
`,
|
|
1485
|
+
`,S0=({items:e})=>b.jsx($0,{children:e.map(({isActive:t,label:r,onClick:n},o)=>b.jsx(x0,{className:t?"active":"",onClick:n,type:"button",children:b.jsx(mn,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:r})},`${r}-${o}`))}),Vl=({label:e,id:t,isActive:r=!1,link:n,notificationSign:o,onClick:i,tooltip:a=""})=>b.jsx($n,{display:"flex",id:`${t}-tooltip`,tip:a,children:b.jsxs(_0,{className:r?"active":"",id:t,onClick:i,to:n,children:[e,b.jsx(zl,{left:o==null?void 0:o.left,numberIndicator:o==null?void 0:o.numberIndicator,show:o==null?void 0:o.show,top:o==null?void 0:o.top,variant:o==null?void 0:o.variant})]})}),C0=({items:e,borders:t=!0,box:r=!1})=>b.jsx(Je,{bgColor:T.palette.white,border:r?"1px solid":void 0,borderBottom:t?`1px solid ${T.palette.gray[300]}`:void 0,borderColor:r?T.palette.gray[200]:void 0,borderRadius:r?T.spacing[.25]:void 0,display:"inline-flex",gap:.25,padding:r?[0,0,0,0]:void 0,pl:t?1.25:void 0,pr:t?1.25:void 0,width:r?"max-content":"100%",children:e.map(({id:n,isActive:o,link:i,label:a,notificationSign:s,onClick:c,tooltip:u})=>b.jsx(Vl,{id:n,isActive:o,label:a,link:i,notificationSign:s,onClick:c,tooltip:u},n))}),E0=X.div`
|
|
1333
1486
|
${({theme:e})=>`
|
|
1334
1487
|
align-items: center;
|
|
1335
1488
|
display: flex;
|
|
@@ -1359,7 +1512,7 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1359
1512
|
width: 320px;
|
|
1360
1513
|
}
|
|
1361
1514
|
`}
|
|
1362
|
-
`,
|
|
1515
|
+
`,k0=X.button`
|
|
1363
1516
|
${({theme:e})=>`
|
|
1364
1517
|
align-items: center;
|
|
1365
1518
|
background: linear-gradient(
|
|
@@ -1388,4 +1541,4 @@ Check the top-level render call using <`+x+">.")}return h}function Hr(l,h){if(!(
|
|
|
1388
1541
|
color: ${e.palette.white};
|
|
1389
1542
|
}
|
|
1390
1543
|
`}
|
|
1391
|
-
`,
|
|
1544
|
+
`,A0=({defaultSelection:e,options:t,handleClick:r})=>{const[n,o]=v.useState(e??t[0]),i=v.useCallback(a=>()=>{o(a),r(a)},[r]);return b.jsx(E0,{children:t.map((a,s)=>b.jsx(k0,{className:`${a.includes(n)&&"selected"}`,onClick:i(a),children:b.jsx(ze,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:a})},`${a}-${s}`))})};exports.Accordion=Wd;exports.BaseButtonComponent=lc;exports.BaseComponent=yn;exports.BaseSpanComponent=uc;exports.BaseTextComponent=Vi;exports.Button=xo;exports.Checkbox=qg;exports.CloudImage=En;exports.Container=Je;exports.ContentCard=ab;exports.CustomThemeProvider=$d;exports.FixedTabs=S0;exports.Form=ub;exports.FormItem=lb;exports.Heading=mn;exports.Icon=nt;exports.IconButton=fb;exports.LanguageSelector=Xb;exports.Logo=e0;exports.LogoCarousel=o0;exports.MessageBanner=s0;exports.NotificationSign=zl;exports.OutlineContainer=ga;exports.PhoneInput=Ub;exports.ProgressBar=fc;exports.RadioButton=f0;exports.SearchBar=w0;exports.Tab=Vl;exports.Tabs=C0;exports.Text=ze;exports.TextInput=Gb;exports.ToggleButton=A0;exports.Tooltip=$n;exports.getStyledConfig=gn;exports.hiddenProps=Fs;exports.icons=wd;exports.setBorder=dn;exports.setDisplay=fn;exports.setInteraction=hn;exports.setMargin=ln;exports.setPadding=cn;exports.setPosition=un;exports.setText=pn;exports.theme=T;exports.uniqueIcons=xd;exports.variantBuilder=Ns;
|