@fluidattacks/design 1.2.2 → 1.2.4-pr
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 +150 -23
- package/dist/design.js.map +1 -0
- package/dist/design.mjs +3603 -2076
- package/dist/design.mjs.map +1 -0
- package/dist/src/components/@core/constants.d.ts +1 -0
- package/dist/src/components/@core/constants.d.ts.map +1 -0
- package/dist/src/components/@core/index.d.ts +7 -0
- package/dist/src/components/@core/index.d.ts.map +1 -0
- package/dist/src/components/@core/styles.d.ts +1 -0
- package/dist/src/components/@core/styles.d.ts.map +1 -0
- package/dist/src/components/@core/types.d.ts +1 -0
- package/dist/src/components/@core/types.d.ts.map +1 -0
- package/dist/src/components/@core/utils.d.ts +1 -0
- package/dist/src/components/@core/utils.d.ts.map +1 -0
- package/dist/src/components/@core/variants/utils.d.ts +1 -0
- package/dist/src/components/@core/variants/utils.d.ts.map +1 -0
- package/dist/src/components/cloud-image/index.d.ts +4 -10
- package/dist/src/components/cloud-image/index.d.ts.map +1 -0
- package/dist/src/components/cloud-image/types.d.ts +18 -0
- package/dist/src/components/cloud-image/types.d.ts.map +1 -0
- package/dist/src/components/colors/index.d.ts +1 -0
- package/dist/src/components/colors/index.d.ts.map +1 -0
- package/dist/src/components/container/index.d.ts +5 -0
- package/dist/src/components/container/index.d.ts.map +1 -0
- package/dist/src/components/container/styles.d.ts +8 -0
- package/dist/src/components/container/styles.d.ts.map +1 -0
- package/dist/src/components/container/types.d.ts +20 -0
- package/dist/src/components/container/types.d.ts.map +1 -0
- package/dist/src/components/logo/index.d.ts +4 -0
- package/dist/src/components/logo/index.d.ts.map +1 -0
- package/dist/src/components/logo/types.d.ts +12 -0
- package/dist/src/components/logo/types.d.ts.map +1 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/index.d.ts.map +1 -0
- package/dist/src/hooks/use-cloudinary-image.d.ts +6 -0
- package/dist/src/hooks/use-cloudinary-image.d.ts.map +1 -0
- package/dist/src/index.d.ts +6 -1
- package/dist/src/index.d.ts.map +1 -0
- package/dist/vite.config.d.ts +1 -0
- package/dist/vite.config.d.ts.map +1 -0
- package/package.json +2 -1
- package/dist/dist/design.d.mts +0 -9
- package/dist/dist/design.d.ts +0 -9
- package/dist/eslint.config.d.mts +0 -2
package/dist/design.js
CHANGED
|
@@ -1,4 +1,61 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Gt=require("react");var Ir={exports:{}},Bt={};/**
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const fe=require("react"),ra=t=>({getVariant:(e,r)=>t(e)[r]}),yi=["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","alignItems","wrap","color","fontSize","fontWeight","textAlign","whiteSpace","lineSpacing","textOverflow","cursor","transition","borderColorHover","bgColorHover","shadowHover"];var _e=function(){return _e=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_e.apply(this,arguments)};function Zt(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,a;n<o;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}function na(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var oa=/^((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)-.*))$/,ia=na(function(t){return oa.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),X="-ms-",wr="-moz-",Q="-webkit-",vi="comm",tn="rule",eo="decl",sa="@import",_i="@keyframes",aa="@layer",bi=Math.abs,to=String.fromCharCode,Mn=Object.assign;function ca(t,e){return he(t,0)^45?(((e<<2^he(t,0))<<2^he(t,1))<<2^he(t,2))<<2^he(t,3):0}function wi(t){return t.trim()}function mt(t,e){return(t=e.exec(t))?t[0]:t}function D(t,e,r){return t.replace(e,r)}function Ur(t,e,r){return t.indexOf(e,r)}function he(t,e){return t.charCodeAt(e)|0}function er(t,e,r){return t.slice(e,r)}function nt(t){return t.length}function Ei(t){return t.length}function br(t,e){return e.push(t),t}function ua(t,e){return t.map(e).join("")}function Io(t,e){return t.filter(function(r){return!mt(r,e)})}var rn=1,tr=1,Si=0,Ye=0,ue=0,or="";function nn(t,e,r,n,o,a,u,f){return{value:t,root:e,parent:r,type:n,props:o,children:a,line:rn,column:tr,length:u,return:"",siblings:f}}function Et(t,e){return Mn(nn("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function Kt(t){for(;t.root;)t=Et(t.root,{children:[t]});br(t,t.siblings)}function la(){return ue}function fa(){return ue=Ye>0?he(or,--Ye):0,tr--,ue===10&&(tr=1,rn--),ue}function Ke(){return ue=Ye<Si?he(or,Ye++):0,tr++,ue===10&&(tr=1,rn++),ue}function Mt(){return he(or,Ye)}function Br(){return Ye}function on(t,e){return er(or,t,e)}function Dn(t){switch(t){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 da(t){return rn=tr=1,Si=nt(or=t),Ye=0,[]}function ha(t){return or="",t}function Rn(t){return wi(on(Ye-1,Ln(t===91?t+2:t===40?t+1:t)))}function pa(t){for(;(ue=Mt())&&ue<33;)Ke();return Dn(t)>2||Dn(ue)>3?"":" "}function ga(t,e){for(;--e&&Ke()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return on(t,Br()+(e<6&&Mt()==32&&Ke()==32))}function Ln(t){for(;Ke();)switch(ue){case t:return Ye;case 34:case 39:t!==34&&t!==39&&Ln(ue);break;case 40:t===41&&Ln(t);break;case 92:Ke();break}return Ye}function ma(t,e){for(;Ke()&&t+ue!==57;)if(t+ue===84&&Mt()===47)break;return"/*"+on(e,Ye-1)+"*"+to(t===47?t:Ke())}function ya(t){for(;!Dn(Mt());)Ke();return on(t,Ye)}function va(t){return ha(qr("",null,null,null,[""],t=da(t),0,[0],t))}function qr(t,e,r,n,o,a,u,f,h){for(var g=0,_=0,S=u,A=0,$=0,B=0,q=1,Z=1,F=1,R=0,z="",G=o,W=a,k=n,O=z;Z;)switch(B=R,R=Ke()){case 40:if(B!=108&&he(O,S-1)==58){Ur(O+=D(Rn(R),"&","&\f"),"&\f",bi(g?f[g-1]:0))!=-1&&(F=-1);break}case 34:case 39:case 91:O+=Rn(R);break;case 9:case 10:case 13:case 32:O+=pa(B);break;case 92:O+=ga(Br()-1,7);continue;case 47:switch(Mt()){case 42:case 47:br(_a(ma(Ke(),Br()),e,r,h),h);break;default:O+="/"}break;case 123*q:f[g++]=nt(O)*F;case 125*q:case 59:case 0:switch(R){case 0:case 125:Z=0;case 59+_:F==-1&&(O=D(O,/\f/g,"")),$>0&&nt(O)-S&&br($>32?Do(O+";",n,r,S-1,h):Do(D(O," ","")+";",n,r,S-2,h),h);break;case 59:O+=";";default:if(br(k=Mo(O,e,r,g,_,o,f,z,G=[],W=[],S,a),a),R===123)if(_===0)qr(O,e,k,k,G,a,S,f,W);else switch(A===99&&he(O,3)===110?100:A){case 100:case 108:case 109:case 115:qr(t,k,k,n&&br(Mo(t,k,k,0,0,o,f,z,o,G=[],S,W),W),o,W,S,f,n?G:W);break;default:qr(O,k,k,k,[""],W,0,f,W)}}g=_=$=0,q=F=1,z=O="",S=u;break;case 58:S=1+nt(O),$=B;default:if(q<1){if(R==123)--q;else if(R==125&&q++==0&&fa()==125)continue}switch(O+=to(R),R*q){case 38:F=_>0?1:(O+="\f",-1);break;case 44:f[g++]=(nt(O)-1)*F,F=1;break;case 64:Mt()===45&&(O+=Rn(Ke())),A=Mt(),_=S=nt(z=O+=ya(Br())),R++;break;case 45:B===45&&nt(O)==2&&(q=0)}}return a}function Mo(t,e,r,n,o,a,u,f,h,g,_,S){for(var A=o-1,$=o===0?a:[""],B=Ei($),q=0,Z=0,F=0;q<n;++q)for(var R=0,z=er(t,A+1,A=bi(Z=u[q])),G=t;R<B;++R)(G=wi(Z>0?$[R]+" "+z:D(z,/&\f/g,$[R])))&&(h[F++]=G);return nn(t,e,r,o===0?tn:f,h,g,_,S)}function _a(t,e,r,n){return nn(t,e,r,vi,to(la()),er(t,2,-2),0,n)}function Do(t,e,r,n,o){return nn(t,e,r,eo,er(t,0,n),er(t,n+1,-1),n,o)}function Ci(t,e,r){switch(ca(t,e)){case 5103:return Q+"print-"+t+t;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 Q+t+t;case 4789:return wr+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Q+t+wr+t+X+t+t;case 5936:switch(he(t,e+11)){case 114:return Q+t+X+D(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Q+t+X+D(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Q+t+X+D(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return Q+t+X+t+t;case 6165:return Q+t+X+"flex-"+t+t;case 5187:return Q+t+D(t,/(\w+).+(:[^]+)/,Q+"box-$1$2"+X+"flex-$1$2")+t;case 5443:return Q+t+X+"flex-item-"+D(t,/flex-|-self/g,"")+(mt(t,/flex-|baseline/)?"":X+"grid-row-"+D(t,/flex-|-self/g,""))+t;case 4675:return Q+t+X+"flex-line-pack"+D(t,/align-content|flex-|-self/g,"")+t;case 5548:return Q+t+X+D(t,"shrink","negative")+t;case 5292:return Q+t+X+D(t,"basis","preferred-size")+t;case 6060:return Q+"box-"+D(t,"-grow","")+Q+t+X+D(t,"grow","positive")+t;case 4554:return Q+D(t,/([^-])(transform)/g,"$1"+Q+"$2")+t;case 6187:return D(D(D(t,/(zoom-|grab)/,Q+"$1"),/(image-set)/,Q+"$1"),t,"")+t;case 5495:case 3959:return D(t,/(image-set\([^]*)/,Q+"$1$`$1");case 4968:return D(D(t,/(.+:)(flex-)?(.*)/,Q+"box-pack:$3"+X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Q+t+t;case 4200:if(!mt(t,/flex-|baseline/))return X+"grid-column-align"+er(t,e)+t;break;case 2592:case 3360:return X+D(t,"template-","")+t;case 4384:case 3616:return r&&r.some(function(n,o){return e=o,mt(n.props,/grid-\w+-end/)})?~Ur(t+(r=r[e].value),"span",0)?t:X+D(t,"-start","")+t+X+"grid-row-span:"+(~Ur(r,"span",0)?mt(r,/\d+/):+mt(r,/\d+/)-+mt(t,/\d+/))+";":X+D(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(n){return mt(n.props,/grid-\w+-start/)})?t:X+D(D(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return D(t,/(.+)-inline(.+)/,Q+"$1$2")+t;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(nt(t)-1-e>6)switch(he(t,e+1)){case 109:if(he(t,e+4)!==45)break;case 102:return D(t,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+wr+(he(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Ur(t,"stretch",0)?Ci(D(t,"stretch","fill-available"),e,r)+t:t}break;case 5152:case 5920:return D(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,a,u,f,h,g){return X+o+":"+a+g+(u?X+o+"-span:"+(f?h:+h-+a)+g:"")+t});case 4949:if(he(t,e+6)===121)return D(t,":",":"+Q)+t;break;case 6444:switch(he(t,he(t,14)===45?18:11)){case 120:return D(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Q+(he(t,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+X+"$2box$3")+t;case 100:return D(t,":",":"+X)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return D(t,"scroll-","scroll-snap-")+t}return t}function Yr(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function ba(t,e,r,n){switch(t.type){case aa:if(t.children.length)break;case sa:case eo:return t.return=t.return||t.value;case vi:return"";case _i:return t.return=t.value+"{"+Yr(t.children,n)+"}";case tn:if(!nt(t.value=t.props.join(",")))return""}return nt(r=Yr(t.children,n))?t.return=t.value+"{"+r+"}":""}function wa(t){var e=Ei(t);return function(r,n,o,a){for(var u="",f=0;f<e;f++)u+=t[f](r,n,o,a)||"";return u}}function Ea(t){return function(e){e.root||(e=e.return)&&t(e)}}function Sa(t,e,r,n){if(t.length>-1&&!t.return)switch(t.type){case eo:t.return=Ci(t.value,t.length,r);return;case _i:return Yr([Et(t,{value:D(t.value,"@","@"+Q)})],n);case tn:if(t.length)return ua(r=t.props,function(o){switch(mt(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Kt(Et(t,{props:[D(o,/:(read-\w+)/,":"+wr+"$1")]})),Kt(Et(t,{props:[o]})),Mn(t,{props:Io(r,n)});break;case"::placeholder":Kt(Et(t,{props:[D(o,/:(plac\w+)/,":"+Q+"input-$1")]})),Kt(Et(t,{props:[D(o,/:(plac\w+)/,":"+wr+"$1")]})),Kt(Et(t,{props:[D(o,/:(plac\w+)/,X+"input-$1")]})),Kt(Et(t,{props:[o]})),Mn(t,{props:Io(r,n)});break}return""})}}var Ca={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},Lt=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",xi="active",Ai="data-styled-version",sn="6.1.13",ro=`/*!sc*/
|
|
2
|
+
`,Wr=typeof window<"u"&&"HTMLElement"in window,xa=!!(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"),Lo=/invalid hook call/i,Lr=new Set,Aa=function(t,e){if(process.env.NODE_ENV!=="production"){var r=e?' with the id of "'.concat(e,'"'):"",n="The component ".concat(t).concat(r,` has been created dynamically.
|
|
3
|
+
`)+`You may see this warning because you've called styled inside another component.
|
|
4
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var a=!0;console.error=function(u){for(var f=[],h=1;h<arguments.length;h++)f[h-1]=arguments[h];Lo.test(u)?(a=!1,Lr.delete(n)):o.apply(void 0,Zt([u],f,!1))},fe.useRef(),a&&!Lr.has(n)&&(console.warn(n),Lr.add(n))}catch(u){Lo.test(u.message)&&Lr.delete(n)}finally{console.error=o}}},an=Object.freeze([]),rr=Object.freeze({});function Oa(t,e,r){return r===void 0&&(r=rr),t.theme!==r.theme&&t.theme||e||r.theme}var Fn=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"]),Ta=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ra=/(^-|-$)/g;function Fo(t){return t.replace(Ta,"-").replace(Ra,"")}var Pa=/(a)(d)/gi,Fr=52,Vo=function(t){return String.fromCharCode(t+(t>25?39:97))};function Vn(t){var e,r="";for(e=Math.abs(t);e>Fr;e=e/Fr|0)r=Vo(e%Fr)+r;return(Vo(e%Fr)+r).replace(Pa,"$1-$2")}var Pn,Oi=5381,jt=function(t,e){for(var r=e.length;r;)t=33*t^e.charCodeAt(--r);return t},Ti=function(t){return jt(Oi,t)};function $a(t){return Vn(Ti(t)>>>0)}function Ri(t){return process.env.NODE_ENV!=="production"&&typeof t=="string"&&t||t.displayName||t.name||"Component"}function $n(t){return typeof t=="string"&&(process.env.NODE_ENV==="production"||t.charAt(0)===t.charAt(0).toLowerCase())}var Pi=typeof Symbol=="function"&&Symbol.for,$i=Pi?Symbol.for("react.memo"):60115,ka=Pi?Symbol.for("react.forward_ref"):60112,ja={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ia={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ki={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ma=((Pn={})[ka]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pn[$i]=ki,Pn);function No(t){return("type"in(e=t)&&e.type.$$typeof)===$i?ki:"$$typeof"in t?Ma[t.$$typeof]:ja;var e}var Da=Object.defineProperty,La=Object.getOwnPropertyNames,Uo=Object.getOwnPropertySymbols,Fa=Object.getOwnPropertyDescriptor,Va=Object.getPrototypeOf,Bo=Object.prototype;function ji(t,e,r){if(typeof e!="string"){if(Bo){var n=Va(e);n&&n!==Bo&&ji(t,n,r)}var o=La(e);Uo&&(o=o.concat(Uo(e)));for(var a=No(t),u=No(e),f=0;f<o.length;++f){var h=o[f];if(!(h in Ia||r&&r[h]||u&&h in u||a&&h in a)){var g=Fa(e,h);try{Da(t,h,g)}catch{}}}}return t}function Ft(t){return typeof t=="function"}function no(t){return typeof t=="object"&&"styledComponentId"in t}function It(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function qo(t,e){if(t.length===0)return"";for(var r=t[0],n=1;n<t.length;n++)r+=t[n];return r}function nr(t){return t!==null&&typeof t=="object"&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function Nn(t,e,r){if(r===void 0&&(r=!1),!r&&!nr(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)t[n]=Nn(t[n],e[n]);else if(nr(e))for(var n in e)t[n]=Nn(t[n],e[n]);return t}function oo(t,e){Object.defineProperty(t,"toString",{value:e})}var Na=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
5
|
+
|
|
6
|
+
`,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.
|
|
7
|
+
|
|
8
|
+
- Are you trying to reuse it across renders?
|
|
9
|
+
- Are you accidentally calling collectStyles twice?
|
|
10
|
+
|
|
11
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
12
|
+
|
|
13
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
14
|
+
|
|
15
|
+
- Does this error occur on the client and is your target falsy?
|
|
16
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
17
|
+
|
|
18
|
+
`,5:`The clone method cannot be used on the client!
|
|
19
|
+
|
|
20
|
+
- Are you running in a client-like environment on the server?
|
|
21
|
+
- Are you trying to run SSR on the client?
|
|
22
|
+
|
|
23
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
24
|
+
|
|
25
|
+
- Are you using a custom target that isn't mounted?
|
|
26
|
+
- Does your document not have a valid head element?
|
|
27
|
+
- Have you accidentally removed a style tag manually?
|
|
28
|
+
|
|
29
|
+
`,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
|
|
30
|
+
|
|
31
|
+
`,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
32
|
+
|
|
33
|
+
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
34
|
+
|
|
35
|
+
`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s 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.
|
|
36
|
+
|
|
37
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
38
|
+
|
|
39
|
+
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
40
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
41
|
+
as for instance in your render method then you may be running into this limitation.
|
|
42
|
+
|
|
43
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
44
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
45
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Ua(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t[0],n=[],o=1,a=t.length;o<a;o+=1)n.push(t[o]);return n.forEach(function(u){r=r.replace(/%[a-z]/,u)}),r}function yt(t){for(var e=[],r=1;r<arguments.length;r++)e[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(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(Ua.apply(void 0,Zt([Na[t]],e,!1)).trim())}var Ba=function(){function t(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return t.prototype.indexOfGroup=function(e){for(var r=0,n=0;n<e;n++)r+=this.groupSizes[n];return r},t.prototype.insertRules=function(e,r){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;e>=a;)if((a<<=1)<0)throw yt(16,"".concat(e));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var u=o;u<a;u++)this.groupSizes[u]=0}for(var f=this.indexOfGroup(e+1),h=(u=0,r.length);u<h;u++)this.tag.insertRule(f,r[u])&&(this.groupSizes[e]++,f++)},t.prototype.clearGroup=function(e){if(e<this.length){var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r;this.groupSizes[e]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(e){var r="";if(e>=this.length||this.groupSizes[e]===0)return r;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),a=o+n,u=o;u<a;u++)r+="".concat(this.tag.getRule(u)).concat(ro);return r},t}(),qa=1<<30,zr=new Map,Qr=new Map,Gr=1,Vr=function(t){if(zr.has(t))return zr.get(t);for(;Qr.has(Gr);)Gr++;var e=Gr++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>qa))throw yt(16,"".concat(e));return zr.set(t,e),Qr.set(e,t),e},za=function(t,e){Gr=e+1,zr.set(t,e),Qr.set(e,t)},Ga="style[".concat(Lt,"][").concat(Ai,'="').concat(sn,'"]'),Ya=new RegExp("^".concat(Lt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Wa=function(t,e,r){for(var n,o=r.split(","),a=0,u=o.length;a<u;a++)(n=o[a])&&t.registerName(e,n)},Qa=function(t,e){for(var r,n=((r=e.textContent)!==null&&r!==void 0?r:"").split(ro),o=[],a=0,u=n.length;a<u;a++){var f=n[a].trim();if(f){var h=f.match(Ya);if(h){var g=0|parseInt(h[1],10),_=h[2];g!==0&&(za(_,g),Wa(t,_,h[3]),t.getTag().insertRules(g,o)),o.length=0}else o.push(f)}}},zo=function(t){for(var e=document.querySelectorAll(Ga),r=0,n=e.length;r<n;r++){var o=e[r];o&&o.getAttribute(Lt)!==xi&&(Qa(t,o),o.parentNode&&o.parentNode.removeChild(o))}};function Ha(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Ii=function(t){var e=document.head,r=t||e,n=document.createElement("style"),o=function(f){var h=Array.from(f.querySelectorAll("style[".concat(Lt,"]")));return h[h.length-1]}(r),a=o!==void 0?o.nextSibling:null;n.setAttribute(Lt,xi),n.setAttribute(Ai,sn);var u=Ha();return u&&n.setAttribute("nonce",u),r.insertBefore(n,a),n},Ja=function(){function t(e){this.element=Ii(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,a=n.length;o<a;o++){var u=n[o];if(u.ownerNode===r)return u}throw yt(17)}(this.element),this.length=0}return t.prototype.insertRule=function(e,r){try{return this.sheet.insertRule(r,e),this.length++,!0}catch{return!1}},t.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.prototype.getRule=function(e){var r=this.sheet.cssRules[e];return r&&r.cssText?r.cssText:""},t}(),Ka=function(){function t(e){this.element=Ii(e),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(e,r){if(e<=this.length&&e>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},t}(),Xa=function(){function t(e){this.rules=[],this.length=0}return t.prototype.insertRule=function(e,r){return e<=this.length&&(this.rules.splice(e,0,r),this.length++,!0)},t.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},t}(),Go=Wr,Za={isServer:!Wr,useCSSOMInjection:!xa},Mi=function(){function t(e,r,n){e===void 0&&(e=rr),r===void 0&&(r={});var o=this;this.options=_e(_e({},Za),e),this.gs=r,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Wr&&Go&&(Go=!1,zo(this)),oo(this,function(){return function(a){for(var u=a.getTag(),f=u.length,h="",g=function(S){var A=function(F){return Qr.get(F)}(S);if(A===void 0)return"continue";var $=a.names.get(A),B=u.getGroup(S);if($===void 0||!$.size||B.length===0)return"continue";var q="".concat(Lt,".g").concat(S,'[id="').concat(A,'"]'),Z="";$!==void 0&&$.forEach(function(F){F.length>0&&(Z+="".concat(F,","))}),h+="".concat(B).concat(q,'{content:"').concat(Z,'"}').concat(ro)},_=0;_<f;_++)g(_);return h}(o)})}return t.registerId=function(e){return Vr(e)},t.prototype.rehydrate=function(){!this.server&&Wr&&zo(this)},t.prototype.reconstructWithOptions=function(e,r){return r===void 0&&(r=!0),new t(_e(_e({},this.options),e),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new Xa(o):n?new Ja(o):new Ka(o)}(this.options),new Ba(e)));var e},t.prototype.hasNameForId=function(e,r){return this.names.has(e)&&this.names.get(e).has(r)},t.prototype.registerName=function(e,r){if(Vr(e),this.names.has(e))this.names.get(e).add(r);else{var n=new Set;n.add(r),this.names.set(e,n)}},t.prototype.insertRules=function(e,r,n){this.registerName(e,r),this.getTag().insertRules(Vr(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(Vr(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t}(),ec=/&/g,tc=/^\s*\/\/.*$/gm;function Di(t,e){return t.map(function(r){return r.type==="rule"&&(r.value="".concat(e," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(e," ")),r.props=r.props.map(function(n){return"".concat(e," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Di(r.children,e)),r})}function rc(t){var e,r,n,o=rr,a=o.options,u=a===void 0?rr:a,f=o.plugins,h=f===void 0?an:f,g=function(A,$,B){return B.startsWith(r)&&B.endsWith(r)&&B.replaceAll(r,"").length>0?".".concat(e):A},_=h.slice();_.push(function(A){A.type===tn&&A.value.includes("&")&&(A.props[0]=A.props[0].replace(ec,r).replace(n,g))}),u.prefix&&_.push(Sa),_.push(ba);var S=function(A,$,B,q){$===void 0&&($=""),B===void 0&&(B=""),q===void 0&&(q="&"),e=q,r=$,n=new RegExp("\\".concat(r,"\\b"),"g");var Z=A.replace(tc,""),F=va(B||$?"".concat(B," ").concat($," { ").concat(Z," }"):Z);u.namespace&&(F=Di(F,u.namespace));var R=[];return Yr(F,wa(_.concat(Ea(function(z){return R.push(z)})))),R};return S.hash=h.length?h.reduce(function(A,$){return $.name||yt(15),jt(A,$.name)},Oi).toString():"",S}var nc=new Mi,Un=rc(),Li=fe.createContext({shouldForwardProp:void 0,styleSheet:nc,stylis:Un});Li.Consumer;fe.createContext(void 0);function Yo(){return fe.useContext(Li)}var Wo=function(){function t(e,r){var n=this;this.inject=function(o,a){a===void 0&&(a=Un);var u=n.name+a.hash;o.hasNameForId(n.id,u)||o.insertRules(n.id,u,a(n.rules,u,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=r,oo(this,function(){throw yt(12,String(n.name))})}return t.prototype.getName=function(e){return e===void 0&&(e=Un),this.name+e.hash},t}(),oc=function(t){return t>="A"&&t<="Z"};function Qo(t){for(var e="",r=0;r<t.length;r++){var n=t[r];if(r===1&&n==="-"&&t[0]==="-")return t;oc(n)?e+="-"+n.toLowerCase():e+=n}return e.startsWith("ms-")?"-"+e:e}var Fi=function(t){return t==null||t===!1||t===""},Vi=function(t){var e,r,n=[];for(var o in t){var a=t[o];t.hasOwnProperty(o)&&!Fi(a)&&(Array.isArray(a)&&a.isCss||Ft(a)?n.push("".concat(Qo(o),":"),a,";"):nr(a)?n.push.apply(n,Zt(Zt(["".concat(o," {")],Vi(a),!1),["}"],!1)):n.push("".concat(Qo(o),": ").concat((e=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||e in Ca||e.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Dt(t,e,r,n){if(Fi(t))return[];if(no(t))return[".".concat(t.styledComponentId)];if(Ft(t)){if(!Ft(a=t)||a.prototype&&a.prototype.isReactComponent||!e)return[t];var o=t(e);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Wo||nr(o)||o===null||console.error("".concat(Ri(t)," 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.")),Dt(o,e,r,n)}var a;return t instanceof Wo?r?(t.inject(r,n),[t.getName(n)]):[t]:nr(t)?Vi(t):Array.isArray(t)?Array.prototype.concat.apply(an,t.map(function(u){return Dt(u,e,r,n)})):[t.toString()]}function ic(t){for(var e=0;e<t.length;e+=1){var r=t[e];if(Ft(r)&&!no(r))return!1}return!0}var sc=Ti(sn),ac=function(){function t(e,r,n){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&ic(e),this.componentId=r,this.baseHash=jt(sc,r),this.baseStyle=n,Mi.registerId(r)}return t.prototype.generateAndInjectStyles=function(e,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=It(o,this.staticRulesId);else{var a=qo(Dt(this.rules,e,r,n)),u=Vn(jt(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,u)){var f=n(a,".".concat(u),void 0,this.componentId);r.insertRules(this.componentId,u,f)}o=It(o,u),this.staticRulesId=u}else{for(var h=jt(this.baseHash,n.hash),g="",_=0;_<this.rules.length;_++){var S=this.rules[_];if(typeof S=="string")g+=S,process.env.NODE_ENV!=="production"&&(h=jt(h,S));else if(S){var A=qo(Dt(S,e,r,n));h=jt(h,A+_),g+=A}}if(g){var $=Vn(h>>>0);r.hasNameForId(this.componentId,$)||r.insertRules(this.componentId,$,n(g,".".concat($),void 0,this.componentId)),o=It(o,$)}}return o},t}(),Hr=fe.createContext(void 0);Hr.Consumer;function cc(t){var e=fe.useContext(Hr),r=fe.useMemo(function(){return function(n,o){if(!n)throw yt(14);if(Ft(n)){var a=n(o);if(process.env.NODE_ENV!=="production"&&(a===null||Array.isArray(a)||typeof a!="object"))throw yt(7);return a}if(Array.isArray(n)||typeof n!="object")throw yt(8);return o?_e(_e({},o),n):n}(t.theme,e)},[t.theme,e]);return t.children?fe.createElement(Hr.Provider,{value:r},t.children):null}var kn={},Ho=new Set;function uc(t,e,r){var n=no(t),o=t,a=!$n(t),u=e.attrs,f=u===void 0?an:u,h=e.componentId,g=h===void 0?function(G,W){var k=typeof G!="string"?"sc":Fo(G);kn[k]=(kn[k]||0)+1;var O="".concat(k,"-").concat($a(sn+k+kn[k]));return W?"".concat(W,"-").concat(O):O}(e.displayName,e.parentComponentId):h,_=e.displayName,S=_===void 0?function(G){return $n(G)?"styled.".concat(G):"Styled(".concat(Ri(G),")")}(t):_,A=e.displayName&&e.componentId?"".concat(Fo(e.displayName),"-").concat(e.componentId):e.componentId||g,$=n&&o.attrs?o.attrs.concat(f).filter(Boolean):f,B=e.shouldForwardProp;if(n&&o.shouldForwardProp){var q=o.shouldForwardProp;if(e.shouldForwardProp){var Z=e.shouldForwardProp;B=function(G,W){return q(G,W)&&Z(G,W)}}else B=q}var F=new ac(r,A,n?o.componentStyle:void 0);function R(G,W){return function(k,O,be){var Ce=k.attrs,pe=k.componentStyle,et=k.defaultProps,ot=k.foldedComponentIds,ge=k.styledComponentId,xe=k.target,Le=fe.useContext(Hr),de=Yo(),we=k.shouldForwardProp||de.shouldForwardProp;process.env.NODE_ENV!=="production"&&fe.useDebugValue(ge);var ke=Oa(O,Le,et)||rr,ne=function(Fe,Ee,je){for(var me,oe=_e(_e({},Ee),{className:void 0,theme:je}),Oe=0;Oe<Fe.length;Oe+=1){var Qe=Ft(me=Fe[Oe])?me(oe):me;for(var ye in Qe)oe[ye]=ye==="className"?It(oe[ye],Qe[ye]):ye==="style"?_e(_e({},oe[ye]),Qe[ye]):Qe[ye]}return Ee.className&&(oe.className=It(oe.className,Ee.className)),oe}(Ce,O,ke),V=ne.as||xe,Ae={};for(var re in ne)ne[re]===void 0||re[0]==="$"||re==="as"||re==="theme"&&ne.theme===ke||(re==="forwardedAs"?Ae.as=ne.forwardedAs:we&&!we(re,V)||(Ae[re]=ne[re],we||process.env.NODE_ENV!=="development"||ia(re)||Ho.has(re)||!Fn.has(V)||(Ho.add(re),console.warn('styled-components: it looks like an unknown prop "'.concat(re,'" 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 j=function(Fe,Ee){var je=Yo(),me=Fe.generateAndInjectStyles(Ee,je.styleSheet,je.stylis);return process.env.NODE_ENV!=="production"&&fe.useDebugValue(me),me}(pe,ne);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(j);var We=It(ot,ge);return j&&(We+=" "+j),ne.className&&(We+=" "+ne.className),Ae[$n(V)&&!Fn.has(V)?"class":"className"]=We,Ae.ref=be,fe.createElement(V,Ae)}(z,G,W)}R.displayName=S;var z=fe.forwardRef(R);return z.attrs=$,z.componentStyle=F,z.displayName=S,z.shouldForwardProp=B,z.foldedComponentIds=n?It(o.foldedComponentIds,o.styledComponentId):"",z.styledComponentId=A,z.target=n?o.target:t,Object.defineProperty(z,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(G){this._foldedDefaultProps=n?function(W){for(var k=[],O=1;O<arguments.length;O++)k[O-1]=arguments[O];for(var be=0,Ce=k;be<Ce.length;be++)Nn(W,Ce[be],!0);return W}({},o.defaultProps,G):G}}),process.env.NODE_ENV!=="production"&&(Aa(S,A),z.warnTooManyClasses=function(G,W){var k={},O=!1;return function(be){if(!O&&(k[be]=!0,Object.keys(k).length>=200)){var Ce=W?' with the id of "'.concat(W,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(G).concat(Ce,`.
|
|
46
|
+
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
47
|
+
Example:
|
|
48
|
+
const Component = styled.div.attrs(props => ({
|
|
49
|
+
style: {
|
|
50
|
+
background: props.background,
|
|
51
|
+
},
|
|
52
|
+
}))\`width: 100%;\`
|
|
53
|
+
|
|
54
|
+
<Component />`),O=!0,k={}}}}(S,A)),oo(z,function(){return".".concat(z.styledComponentId)}),a&&ji(z,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),z}function Jo(t,e){for(var r=[t[0]],n=0,o=e.length;n<o;n+=1)r.push(e[n],t[n+1]);return r}var Ko=function(t){return Object.assign(t,{isCss:!0})};function lc(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(Ft(t)||nr(t))return Ko(Dt(Jo(an,Zt([t],e,!0))));var n=t;return e.length===0&&n.length===1&&typeof n[0]=="string"?Dt(n):Ko(Dt(Jo(n,e)))}function Bn(t,e,r){if(r===void 0&&(r=rr),!e)throw yt(1,e);var n=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return t(e,r,lc.apply(void 0,Zt([o],a,!1)))};return n.attrs=function(o){return Bn(t,e,_e(_e({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return Bn(t,e,_e(_e({},r),o))},n}var Ni=function(t){return Bn(uc,t)},io=Ni;Fn.forEach(function(t){io[t]=Ni(t)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
55
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
56
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Nr="__sc-".concat(Lt,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Nr]||(window[Nr]=0),window[Nr]===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.
|
|
57
|
+
|
|
58
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Nr]+=1);var qn={exports:{}},vr={};/**
|
|
2
59
|
* @license React
|
|
3
60
|
* react-jsx-runtime.production.min.js
|
|
4
61
|
*
|
|
@@ -6,7 +63,7 @@
|
|
|
6
63
|
*
|
|
7
64
|
* This source code is licensed under the MIT license found in the
|
|
8
65
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
66
|
+
*/var Xo;function fc(){if(Xo)return vr;Xo=1;var t=fe,e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(f,h,g){var _,S={},A=null,$=null;g!==void 0&&(A=""+g),h.key!==void 0&&(A=""+h.key),h.ref!==void 0&&($=h.ref);for(_ in h)n.call(h,_)&&!a.hasOwnProperty(_)&&(S[_]=h[_]);if(f&&f.defaultProps)for(_ in h=f.defaultProps,h)S[_]===void 0&&(S[_]=h[_]);return{$$typeof:e,type:f,key:A,ref:$,props:S,_owner:o.current}}return vr.Fragment=r,vr.jsx=u,vr.jsxs=u,vr}var _r={};/**
|
|
10
67
|
* @license React
|
|
11
68
|
* react-jsx-runtime.development.js
|
|
12
69
|
*
|
|
@@ -14,64 +71,134 @@
|
|
|
14
71
|
*
|
|
15
72
|
* This source code is licensed under the MIT license found in the
|
|
16
73
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
74
|
+
*/var Zo;function dc(){return Zo||(Zo=1,process.env.NODE_ENV!=="production"&&function(){var t=fe,e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),B=Symbol.iterator,q="@@iterator";function Z(c){if(c===null||typeof c!="object")return null;var y=B&&c[B]||c[q];return typeof y=="function"?y:null}var F=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(c){{for(var y=arguments.length,b=new Array(y>1?y-1:0),C=1;C<y;C++)b[C-1]=arguments[C];z("error",c,b)}}function z(c,y,b){{var C=F.ReactDebugCurrentFrame,Y=C.getStackAddendum();Y!==""&&(y+="%s",b=b.concat([Y]));var U=b.map(function(L){return String(L)});U.unshift("Warning: "+y),Function.prototype.apply.call(console[c],console,U)}}var G=!1,W=!1,k=!1,O=!1,be=!1,Ce;Ce=Symbol.for("react.module.reference");function pe(c){return!!(typeof c=="string"||typeof c=="function"||c===n||c===a||be||c===o||c===g||c===_||O||c===$||G||W||k||typeof c=="object"&&c!==null&&(c.$$typeof===A||c.$$typeof===S||c.$$typeof===u||c.$$typeof===f||c.$$typeof===h||c.$$typeof===Ce||c.getModuleId!==void 0))}function et(c,y,b){var C=c.displayName;if(C)return C;var Y=y.displayName||y.name||"";return Y!==""?b+"("+Y+")":b}function ot(c){return c.displayName||"Context"}function ge(c){if(c==null)return null;if(typeof c.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case g:return"Suspense";case _:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case f:var y=c;return ot(y)+".Consumer";case u:var b=c;return ot(b._context)+".Provider";case h:return et(c,c.render,"ForwardRef");case S:var C=c.displayName||null;return C!==null?C:ge(c.type)||"Memo";case A:{var Y=c,U=Y._payload,L=Y._init;try{return ge(L(U))}catch{return null}}}return null}var xe=Object.assign,Le=0,de,we,ke,ne,V,Ae,re;function j(){}j.__reactDisabledLog=!0;function We(){{if(Le===0){de=console.log,we=console.info,ke=console.warn,ne=console.error,V=console.group,Ae=console.groupCollapsed,re=console.groupEnd;var c={configurable:!0,enumerable:!0,value:j,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}Le++}}function Fe(){{if(Le--,Le===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xe({},c,{value:de}),info:xe({},c,{value:we}),warn:xe({},c,{value:ke}),error:xe({},c,{value:ne}),group:xe({},c,{value:V}),groupCollapsed:xe({},c,{value:Ae}),groupEnd:xe({},c,{value:re})})}Le<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ee=F.ReactCurrentDispatcher,je;function me(c,y,b){{if(je===void 0)try{throw Error()}catch(Y){var C=Y.stack.trim().match(/\n( *(at )?)/);je=C&&C[1]||""}return`
|
|
75
|
+
`+je+c}}var oe=!1,Oe;{var Qe=typeof WeakMap=="function"?WeakMap:Map;Oe=new Qe}function ye(c,y){if(!c||oe)return"";{var b=Oe.get(c);if(b!==void 0)return b}var C;oe=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var U;U=Ee.current,Ee.current=null,We();try{if(y){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(De){C=De}Reflect.construct(c,[],L)}else{try{L.call()}catch(De){C=De}c.call(L.prototype)}}else{try{throw Error()}catch(De){C=De}c()}}catch(De){if(De&&C&&typeof De.stack=="string"){for(var M=De.stack.split(`
|
|
76
|
+
`),le=C.stack.split(`
|
|
77
|
+
`),K=M.length-1,ee=le.length-1;K>=1&&ee>=0&&M[K]!==le[ee];)ee--;for(;K>=1&&ee>=0;K--,ee--)if(M[K]!==le[ee]){if(K!==1||ee!==1)do if(K--,ee--,ee<0||M[K]!==le[ee]){var ie=`
|
|
78
|
+
`+M[K].replace(" at new "," at ");return c.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",c.displayName)),typeof c=="function"&&Oe.set(c,ie),ie}while(K>=1&&ee>=0);break}}}finally{oe=!1,Ee.current=U,Fe(),Error.prepareStackTrace=Y}var qe=c?c.displayName||c.name:"",Pt=qe?me(qe):"";return typeof c=="function"&&Oe.set(c,Pt),Pt}function Ut(c,y,b){return ye(c,!1)}function _t(c){var y=c.prototype;return!!(y&&y.isReactComponent)}function He(c,y,b){if(c==null)return"";if(typeof c=="function")return ye(c,_t(c));if(typeof c=="string")return me(c);switch(c){case g:return me("Suspense");case _:return me("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case h:return Ut(c.render);case S:return He(c.type,y,b);case A:{var C=c,Y=C._payload,U=C._init;try{return He(U(Y),y,b)}catch{}}}return""}var tt=Object.prototype.hasOwnProperty,rt={},At=F.ReactDebugCurrentFrame;function it(c){if(c){var y=c._owner,b=He(c.type,c._source,y?y.type:null);At.setExtraStackFrame(b)}else At.setExtraStackFrame(null)}function st(c,y,b,C,Y){{var U=Function.call.bind(tt);for(var L in c)if(U(c,L)){var M=void 0;try{if(typeof c[L]!="function"){var le=Error((C||"React class")+": "+b+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw le.name="Invariant Violation",le}M=c[L](y,L,C,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(K){M=K}M&&!(M instanceof Error)&&(it(Y),R("%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).",C||"React class",b,L,typeof M),it(null)),M instanceof Error&&!(M.message in rt)&&(rt[M.message]=!0,it(Y),R("Failed %s type: %s",b,M.message),it(null))}}}var at=Array.isArray;function ct(c){return at(c)}function Ot(c){{var y=typeof Symbol=="function"&&Symbol.toStringTag,b=y&&c[Symbol.toStringTag]||c.constructor.name||"Object";return b}}function Ve(c){try{return ut(c),!1}catch{return!0}}function ut(c){return""+c}function Bt(c){if(Ve(c))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ot(c)),ut(c)}var Ne=F.ReactCurrentOwner,qt={key:!0,ref:!0,__self:!0,__source:!0},Tt,zt,Ue;Ue={};function Gt(c){if(tt.call(c,"ref")){var y=Object.getOwnPropertyDescriptor(c,"ref").get;if(y&&y.isReactWarning)return!1}return c.ref!==void 0}function sr(c){if(tt.call(c,"key")){var y=Object.getOwnPropertyDescriptor(c,"key").get;if(y&&y.isReactWarning)return!1}return c.key!==void 0}function Yt(c,y){if(typeof c.ref=="string"&&Ne.current&&y&&Ne.current.stateNode!==y){var b=ge(Ne.current.type);Ue[b]||(R('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',ge(Ne.current.type),c.ref),Ue[b]=!0)}}function Wt(c,y){{var b=function(){Tt||(Tt=!0,R("%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)",y))};b.isReactWarning=!0,Object.defineProperty(c,"key",{get:b,configurable:!0})}}function ar(c,y){{var b=function(){zt||(zt=!0,R("%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)",y))};b.isReactWarning=!0,Object.defineProperty(c,"ref",{get:b,configurable:!0})}}var bt=function(c,y,b,C,Y,U,L){var M={$$typeof:e,type:c,key:y,ref:b,props:L,_owner:U};return M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(M,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(M,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M};function lt(c,y,b,C,Y){{var U,L={},M=null,le=null;b!==void 0&&(Bt(b),M=""+b),sr(y)&&(Bt(y.key),M=""+y.key),Gt(y)&&(le=y.ref,Yt(y,Y));for(U in y)tt.call(y,U)&&!qt.hasOwnProperty(U)&&(L[U]=y[U]);if(c&&c.defaultProps){var K=c.defaultProps;for(U in K)L[U]===void 0&&(L[U]=K[U])}if(M||le){var ee=typeof c=="function"?c.displayName||c.name||"Unknown":c;M&&Wt(L,ee),le&&ar(L,ee)}return bt(c,M,le,Y,C,Ne.current,L)}}var Be=F.ReactCurrentOwner,ft=F.ReactDebugCurrentFrame;function Ie(c){if(c){var y=c._owner,b=He(c.type,c._source,y?y.type:null);ft.setExtraStackFrame(b)}else ft.setExtraStackFrame(null)}var Me;Me=!1;function dt(c){return typeof c=="object"&&c!==null&&c.$$typeof===e}function wt(){{if(Be.current){var c=ge(Be.current.type);if(c)return`
|
|
79
|
+
|
|
80
|
+
Check the render method of \``+c+"`."}return""}}function cr(c){return""}var Qt={};function ur(c){{var y=wt();if(!y){var b=typeof c=="string"?c:c.displayName||c.name;b&&(y=`
|
|
22
81
|
|
|
23
|
-
Check the render
|
|
82
|
+
Check the top-level render call using <`+b+">.")}return y}}function ht(c,y){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var b=ur(y);if(Qt[b])return;Qt[b]=!0;var C="";c&&c._owner&&c._owner!==Be.current&&(C=" It was passed a child from "+ge(c._owner.type)+"."),Ie(c),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',b,C),Ie(null)}}function Rt(c,y){{if(typeof c!="object")return;if(ct(c))for(var b=0;b<c.length;b++){var C=c[b];dt(C)&&ht(C,y)}else if(dt(c))c._store&&(c._store.validated=!0);else if(c){var Y=Z(c);if(typeof Y=="function"&&Y!==c.entries)for(var U=Y.call(c),L;!(L=U.next()).done;)dt(L.value)&&ht(L.value,y)}}}function Je(c){{var y=c.type;if(y==null||typeof y=="string")return;var b;if(typeof y=="function")b=y.propTypes;else if(typeof y=="object"&&(y.$$typeof===h||y.$$typeof===S))b=y.propTypes;else return;if(b){var C=ge(y);st(b,c.props,"prop",C,c)}else if(y.PropTypes!==void 0&&!Me){Me=!0;var Y=ge(y);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Y||"Unknown")}typeof y.getDefaultProps=="function"&&!y.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(c){{for(var y=Object.keys(c.props),b=0;b<y.length;b++){var C=y[b];if(C!=="children"&&C!=="key"){Ie(c),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),Ie(null);break}}c.ref!==null&&(Ie(c),R("Invalid attribute `ref` supplied to `React.Fragment`."),Ie(null))}}function Ht(c,y,b,C,Y,U){{var L=pe(c);if(!L){var M="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(M+=" 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 le=cr();le?M+=le:M+=wt();var K;c===null?K="null":ct(c)?K="array":c!==void 0&&c.$$typeof===e?(K="<"+(ge(c.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):K=typeof c,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",K,M)}var ee=lt(c,y,b,Y,U);if(ee==null)return ee;if(L){var ie=y.children;if(ie!==void 0)if(C)if(ct(ie)){for(var qe=0;qe<ie.length;qe++)Rt(ie[qe],c);Object.freeze&&Object.freeze(ie)}else R("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 Rt(ie,c)}return c===n?lr(ee):Je(ee),ee}}function fr(c,y,b){return Ht(c,y,b,!0)}function dr(c,y,b){return Ht(c,y,b,!1)}var hr=dr,Te=fr;_r.Fragment=n,_r.jsx=hr,_r.jsxs=Te}()),_r}process.env.NODE_ENV==="production"?qn.exports=fc():qn.exports=dc();var Er=qn.exports;const hc={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},pc={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},gc={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},mc={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},yc={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},vc={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},_c={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},bc={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},wc={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"}},Ec={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)"},Sc={mobile:"360px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},Cc={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",5:"5rem",6:"6rem"},xc=["bell","calendar-days","caret-up","chart-simple","circle-check","circle-exclamation","circle-info","cloud","comment","credit-card","ellipsis-stroke-vertical","envelope","eye","file-shield","file","filter","folder","gear","hexagon-exclamation","house","key","magnifying-glass","paper-plane","pen-nib","pen","shield-check","shield-halved","sliders","square-check","star","tags","trash","triangle-exclamation","user-plus","user","xmark"],Ac=[["fal","arrow-down-to-line"],["fal","arrow-left-to-line"],["fal","arrow-right-to-line"],["fal","arrow-up-to-line"],["fal","square-plus"],["fas","check"],["fas","circle-question"]],ce={typography:wc,shadows:Ec,breakpoints:Sc,spacing:Cc,palette:{primary:pc,complementary:gc,error:mc,info:_c,warning:yc,success:vc,black:"#0c111d",white:"#ffffff",gray:hc,gradients:bc}},Oc=({children:t})=>Er.jsx(cc,{theme:ce,children:t}),P=(t,e)=>e===void 0?"":`${t}: ${e};`,Ui=t=>{const e=t.py??t.pt??0,r=t.px??t.pr??0,n=t.py??t.pb??0,o=t.px??t.pl??0;if(t.padding){const[a,u,f,h]=t.padding;return`padding: ${ce.spacing[a]} ${ce.spacing[u]} ${ce.spacing[f]} ${ce.spacing[h]};`}return`padding: ${ce.spacing[e]} ${ce.spacing[r]} ${ce.spacing[n]} ${ce.spacing[o]};`},Bi=t=>{const e=t.my??t.mt??0,r=t.mx??t.mr??0,n=t.my??t.mb??0,o=t.mx??t.ml??0;if(t.margin){const[a,u,f,h]=t.margin;return`margin: ${ce.spacing[a]} ${ce.spacing[u]} ${ce.spacing[f]} ${ce.spacing[h]};`}return`margin: ${ce.spacing[e]} ${ce.spacing[r]} ${ce.spacing[n]} ${ce.spacing[o]};`},qi=t=>{const e=P("position",t.position),r=P("top",t.top),n=P("right",t.right),o=P("bottom",t.bottom),a=P("left",t.left),u=P("z-index",t.zIndex);return`
|
|
83
|
+
${e}
|
|
84
|
+
${r}
|
|
85
|
+
${n}
|
|
86
|
+
${o}
|
|
87
|
+
${a}
|
|
88
|
+
${u}
|
|
89
|
+
`},zi=t=>{const e=P("border",t.border),r=P("border-top",t.borderTop),n=P("border-right",t.borderRight),o=P("border-bottom",t.borderBottom),a=P("border-left",t.borderLeft),u=P("border-color",t.borderColor),f=P("border-radius",t.borderRadius);return`
|
|
90
|
+
${e}
|
|
91
|
+
${r}
|
|
92
|
+
${n}
|
|
93
|
+
${o}
|
|
94
|
+
${a}
|
|
95
|
+
${u}
|
|
96
|
+
${f}
|
|
97
|
+
`},Tc=t=>t.includes("x")?"overflow-x: auto;":"",Rc=t=>t.includes("y")?"overflow-y: auto;":"",Gi=t=>{const e=t.scroll?`
|
|
98
|
+
${Tc(t.scroll)}
|
|
99
|
+
${Rc(t.scroll)}
|
|
100
|
+
`:"",r=P("visibility",t.visibility),n=P("display",t.display),o=P("height",t.height),a=P("width",t.width),u=P("max-height",t.maxHeight),f=P("max-width",t.maxWidth),h=P("min-height",t.minHeight),g=P("min-width",t.minWidth),_=P("box-shadow",t.shadow?ce.shadows[t.shadow]:void 0),S=P("gap",t.gap===void 0?void 0:ce.spacing[t.gap]),A=P("background-color",t.bgColor),$=P("background",t.bgGradient),B=P("flex-direction",t.flexDirection),q=P("flex-grow",t.flexGrow),Z=P("justify-content",t.justify),F=P("justify-self",t.justifySelf),R=P("align-items",t.alignItems),z=P("align-self",t.alignSelf),G=P("flex-wrap",t.wrap);return`
|
|
101
|
+
${e}
|
|
102
|
+
${r}
|
|
103
|
+
${n}
|
|
104
|
+
${o}
|
|
105
|
+
${a}
|
|
106
|
+
${u}
|
|
107
|
+
${f}
|
|
108
|
+
${h}
|
|
109
|
+
${g}
|
|
110
|
+
${_}
|
|
111
|
+
${A}
|
|
112
|
+
${$}
|
|
113
|
+
${S}
|
|
114
|
+
${B}
|
|
115
|
+
${q}
|
|
116
|
+
${Z}
|
|
117
|
+
${F}
|
|
118
|
+
${R}
|
|
119
|
+
${z}
|
|
120
|
+
${G}
|
|
121
|
+
`},Yi=t=>{const e=P("color",t.color),r=P("font-size",t.fontSize),n=P("font-weight",t.fontWeight),o=P("line-height",t.lineSpacing),a=P("text-align",t.textAlign),u=P("text-overflow",t.textOverflow),f=P("white-space",t.whiteSpace),h=P("word-break",t.wordBreak);return`
|
|
122
|
+
${e}
|
|
123
|
+
${r}
|
|
124
|
+
${n}
|
|
125
|
+
${o}
|
|
126
|
+
${a}
|
|
127
|
+
${u}
|
|
128
|
+
${f}
|
|
129
|
+
${h}
|
|
130
|
+
`},Wi=t=>{const e=P("cursor",t.cursor),r=P("border-color",t.borderColorHover),n=P("background-color",t.bgColorHover),o=P("box-shadow",t.shadowHover===void 0?void 0:ce.shadows[t.shadowHover]),a=P("transition",t.transition);return`
|
|
131
|
+
${e}
|
|
24
132
|
|
|
25
|
-
Check the top-level render call using <`+_+">.")}return p}}function Ve(a,p){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var _=It(p);if(At[_])return;At[_]=!0;var T="";a&&a._owner&&a._owner!==le.current&&(T=" It was passed a child from "+K(a._owner.type)+"."),ne(a),q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,T),ne(null)}}function dt(a,p){{if(typeof a!="object")return;if(ke(a))for(var _=0;_<a.length;_++){var T=a[_];De(T)&&Ve(T,p)}else if(De(a))a._store&&(a._store.validated=!0);else if(a){var $=Qe(a);if(typeof $=="function"&&$!==a.entries)for(var j=$.call(a),R;!(R=j.next()).done;)De(R.value)&&Ve(R.value,p)}}}function ye(a){{var p=a.type;if(p==null||typeof p=="string")return;var _;if(typeof p=="function")_=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===y||p.$$typeof===Q))_=p.propTypes;else return;if(_){var T=K(p);$e(_,a.props,"prop",T,a)}else if(p.PropTypes!==void 0&&!ie){ie=!0;var $=K(p);q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lt(a){{for(var p=Object.keys(a.props),_=0;_<p.length;_++){var T=p[_];if(T!=="children"&&T!=="key"){ne(a),q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T),ne(null);break}}a.ref!==null&&(ne(a),q("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}}function Rt(a,p,_,T,$,j){{var R=z(a);if(!R){var A="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(A+=" 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 B=kt();B?A+=B:A+=Ke();var L;a===null?L="null":ke(a)?L="array":a!==void 0&&a.$$typeof===e?(L="<"+(K(a.type)||"Unknown")+" />",A=" Did you accidentally export a JSX literal instead of a component?"):L=typeof a,q("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",L,A)}var F=Le(a,p,_,$,j);if(F==null)return F;if(R){var V=p.children;if(V!==void 0)if(T)if(ke(V)){for(var fe=0;fe<V.length;fe++)dt(V[fe],a);Object.freeze&&Object.freeze(V)}else q("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 dt(V,a)}return a===n?Lt(F):ye(F),F}}function Ft(a,p,_){return Rt(a,p,_,!0)}function Dt(a,p,_){return Rt(a,p,_,!1)}var Vt=Dt,X=Ft;Yt.Fragment=n,Yt.jsx=Vt,Yt.jsxs=X}()),Yt}process.env.NODE_ENV==="production"?Ir.exports=Qi():Ir.exports=Bi();var Yi=Ir.exports,Xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Lr={exports:{}};(function(t,e){var r=200,n="__lodash_hash_undefined__",s=9007199254740991,c="[object Arguments]",d="[object Array]",v="[object Boolean]",y="[object Date]",m="[object Error]",E="[object Function]",Q="[object GeneratorFunction]",Y="[object Map]",pe="[object Number]",Re="[object Object]",we="[object Promise]",Qe="[object RegExp]",J="[object Set]",q="[object String]",yt="[object Symbol]",tt="[object WeakMap]",rt="[object ArrayBuffer]",Be="[object DataView]",nt="[object Float32Array]",it="[object Float64Array]",ot="[object Int8Array]",z="[object Int16Array]",Ye="[object Int32Array]",st="[object Uint8Array]",K="[object Uint8ClampedArray]",se="[object Uint16Array]",Ee="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,ge=/\w*$/,Te=/^\[object .+?Constructor\]$/,ve=/^(?:0|[1-9]\d*)$/,M={};M[c]=M[d]=M[rt]=M[Be]=M[v]=M[y]=M[nt]=M[it]=M[ot]=M[z]=M[Ye]=M[Y]=M[pe]=M[Re]=M[Qe]=M[J]=M[q]=M[yt]=M[st]=M[K]=M[se]=M[Ee]=!0,M[m]=M[E]=M[tt]=!1;var Ge=typeof Xe=="object"&&Xe&&Xe.Object===Object&&Xe,Pe=typeof self=="object"&&self&&self.Object===Object&&self,P=Ge||Pe||Function("return this")(),at=e&&!e.nodeType&&e,ut=at&&!0&&t&&!t.nodeType&&t,xe=ut&&ut.exports===at;function We(o,l){return o.set(l[0],l[1]),o}function Oe(o,l){return o.add(l),o}function re(o,l){for(var h=-1,w=o?o.length:0;++h<w&&l(o[h],h,o)!==!1;);return o}function Se(o,l){for(var h=-1,w=l.length,G=o.length;++h<w;)o[G+h]=l[h];return o}function _t(o,l,h,w){for(var G=-1,ee=o?o.length:0;++G<ee;)h=l(h,o[G],G,o);return h}function ze(o,l){for(var h=-1,w=Array(o);++h<o;)w[h]=l(h);return w}function bt(o,l){return o==null?void 0:o[l]}function He(o){var l=!1;if(o!=null&&typeof o.toString!="function")try{l=!!(o+"")}catch{}return l}function me(o){var l=-1,h=Array(o.size);return o.forEach(function(w,G){h[++l]=[G,w]}),h}function Ce(o,l){return function(h){return o(l(h))}}function Ae(o){var l=-1,h=Array(o.size);return o.forEach(function(w){h[++l]=w}),h}var ct=Array.prototype,je=Function.prototype,$e=Object.prototype,Me=P["__core-js_shared__"],ke=function(){var o=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),lt=je.toString,ae=$e.hasOwnProperty,Ie=$e.toString,wt=RegExp("^"+lt.call(ae).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ue=xe?P.Buffer:void 0,Et=P.Symbol,ft=P.Uint8Array,Tt=Ce(Object.getPrototypeOf,Object),ce=Object.create,Ot=$e.propertyIsEnumerable,$t=ct.splice,St=Object.getOwnPropertySymbols,Ct=ue?ue.isBuffer:void 0,Mt=Ce(Object.keys,Object),Je=S(P,"DataView"),Le=S(P,"Map"),le=S(P,"Promise"),Fe=S(P,"Set"),ne=S(P,"WeakMap"),ie=S(Object,"create"),De=gt(Je),Ke=gt(Le),kt=gt(le),At=gt(Fe),It=gt(ne),Ve=Et?Et.prototype:void 0,dt=Ve?Ve.valueOf:void 0;function ye(o){var l=-1,h=o?o.length:0;for(this.clear();++l<h;){var w=o[l];this.set(w[0],w[1])}}function Lt(){this.__data__=ie?ie(null):{}}function Rt(o){return this.has(o)&&delete this.__data__[o]}function Ft(o){var l=this.__data__;if(ie){var h=l[o];return h===n?void 0:h}return ae.call(l,o)?l[o]:void 0}function Dt(o){var l=this.__data__;return ie?l[o]!==void 0:ae.call(l,o)}function Vt(o,l){var h=this.__data__;return h[o]=ie&&l===void 0?n:l,this}ye.prototype.clear=Lt,ye.prototype.delete=Rt,ye.prototype.get=Ft,ye.prototype.has=Dt,ye.prototype.set=Vt;function X(o){var l=-1,h=o?o.length:0;for(this.clear();++l<h;){var w=o[l];this.set(w[0],w[1])}}function a(){this.__data__=[]}function p(o){var l=this.__data__,h=pt(l,o);if(h<0)return!1;var w=l.length-1;return h==w?l.pop():$t.call(l,h,1),!0}function _(o){var l=this.__data__,h=pt(l,o);return h<0?void 0:l[h][1]}function T(o){return pt(this.__data__,o)>-1}function $(o,l){var h=this.__data__,w=pt(h,o);return w<0?h.push([o,l]):h[w][1]=l,this}X.prototype.clear=a,X.prototype.delete=p,X.prototype.get=_,X.prototype.has=T,X.prototype.set=$;function j(o){var l=-1,h=o?o.length:0;for(this.clear();++l<h;){var w=o[l];this.set(w[0],w[1])}}function R(){this.__data__={hash:new ye,map:new(Le||X),string:new ye}}function A(o){return O(this,o).delete(o)}function B(o){return O(this,o).get(o)}function L(o){return O(this,o).has(o)}function F(o,l){return O(this,o).set(o,l),this}j.prototype.clear=R,j.prototype.delete=A,j.prototype.get=B,j.prototype.has=L,j.prototype.set=F;function V(o){this.__data__=new X(o)}function fe(){this.__data__=new X}function ht(o){return this.__data__.delete(o)}function oe(o){return this.__data__.get(o)}function br(o){return this.__data__.has(o)}function Zt(o,l){var h=this.__data__;if(h instanceof X){var w=h.__data__;if(!Le||w.length<r-1)return w.push([o,l]),this;h=this.__data__=new j(w)}return h.set(o,l),this}V.prototype.clear=fe,V.prototype.delete=ht,V.prototype.get=oe,V.prototype.has=br,V.prototype.set=Zt;function wr(o,l){var h=xr(o)||Li(o)?ze(o.length,String):[],w=h.length,G=!!w;for(var ee in o)ae.call(o,ee)&&!(G&&(ee=="length"||de(ee,w)))&&h.push(ee);return h}function Ut(o,l,h){var w=o[l];(!(ae.call(o,l)&&hn(w,h))||h===void 0&&!(l in o))&&(o[l]=h)}function pt(o,l){for(var h=o.length;h--;)if(hn(o[h][0],l))return h;return-1}function er(o,l){return o&&g(l,jr(l),o)}function Nt(o,l,h,w,G,ee,Ne){var te;if(w&&(te=ee?w(o,G,ee,Ne):w(o)),te!==void 0)return te;if(!or(o))return o;var vn=xr(o);if(vn){if(te=Z(o),!l)return f(o,te)}else{var Pt=N(o),mn=Pt==E||Pt==Q;if(Di(o))return Or(o,l);if(Pt==Re||Pt==c||mn&&!ee){if(He(o))return ee?o:{};if(te=H(mn?{}:o),!l)return b(o,er(te,o))}else{if(!M[Pt])return ee?o:{};te=Ue(o,Pt,Nt,l)}}Ne||(Ne=new V);var yn=Ne.get(o);if(yn)return yn;if(Ne.set(o,te),!vn)var _n=h?x(o):jr(o);return re(_n||o,function($r,sr){_n&&(sr=$r,$r=o[sr]),Ut(te,sr,Nt($r,l,h,w,sr,o,Ne))}),te}function tr(o){return or(o)?ce(o):{}}function rr(o,l,h){var w=l(o);return xr(o)?w:Se(w,h(o))}function Er(o){return Ie.call(o)}function Tr(o){if(!or(o)||ir(o))return!1;var l=gn(o)||He(o)?wt:Te;return l.test(gt(o))}function nr(o){if(!Qt(o))return Mt(o);var l=[];for(var h in Object(o))ae.call(o,h)&&h!="constructor"&&l.push(h);return l}function Or(o,l){if(l)return o.slice();var h=new o.constructor(o.length);return o.copy(h),h}function qt(o){var l=new o.constructor(o.byteLength);return new ft(l).set(new ft(o)),l}function Sr(o,l){var h=l?qt(o.buffer):o.buffer;return new o.constructor(h,o.byteOffset,o.byteLength)}function Cr(o,l,h){var w=l?h(me(o),!0):me(o);return _t(w,We,new o.constructor)}function Ar(o){var l=new o.constructor(o.source,ge.exec(o));return l.lastIndex=o.lastIndex,l}function Rr(o,l,h){var w=l?h(Ae(o),!0):Ae(o);return _t(w,Oe,new o.constructor)}function i(o){return dt?Object(dt.call(o)):{}}function u(o,l){var h=l?qt(o.buffer):o.buffer;return new o.constructor(h,o.byteOffset,o.length)}function f(o,l){var h=-1,w=o.length;for(l||(l=Array(w));++h<w;)l[h]=o[h];return l}function g(o,l,h,w){h||(h={});for(var G=-1,ee=l.length;++G<ee;){var Ne=l[G],te=void 0;Ut(h,Ne,te===void 0?o[Ne]:te)}return h}function b(o,l){return g(o,U(o),l)}function x(o){return rr(o,jr,U)}function O(o,l){var h=o.__data__;return Pr(l)?h[typeof l=="string"?"string":"hash"]:h.map}function S(o,l){var h=bt(o,l);return Tr(h)?h:void 0}var U=St?Ce(St,Object):Ni,N=Er;(Je&&N(new Je(new ArrayBuffer(1)))!=Be||Le&&N(new Le)!=Y||le&&N(le.resolve())!=we||Fe&&N(new Fe)!=J||ne&&N(new ne)!=tt)&&(N=function(o){var l=Ie.call(o),h=l==Re?o.constructor:void 0,w=h?gt(h):void 0;if(w)switch(w){case De:return Be;case Ke:return Y;case kt:return we;case At:return J;case It:return tt}return l});function Z(o){var l=o.length,h=o.constructor(l);return l&&typeof o[0]=="string"&&ae.call(o,"index")&&(h.index=o.index,h.input=o.input),h}function H(o){return typeof o.constructor=="function"&&!Qt(o)?tr(Tt(o)):{}}function Ue(o,l,h,w){var G=o.constructor;switch(l){case rt:return qt(o);case v:case y:return new G(+o);case Be:return Sr(o,w);case nt:case it:case ot:case z:case Ye:case st:case K:case se:case Ee:return u(o,w);case Y:return Cr(o,w,h);case pe:case q:return new G(o);case Qe:return Ar(o);case J:return Rr(o,w,h);case yt:return i(o)}}function de(o,l){return l=l??s,!!l&&(typeof o=="number"||ve.test(o))&&o>-1&&o%1==0&&o<l}function Pr(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function ir(o){return!!ke&&ke in o}function Qt(o){var l=o&&o.constructor,h=typeof l=="function"&&l.prototype||$e;return o===h}function gt(o){if(o!=null){try{return lt.call(o)}catch{}try{return o+""}catch{}}return""}function Ii(o){return Nt(o,!0,!0)}function hn(o,l){return o===l||o!==o&&l!==l}function Li(o){return Fi(o)&&ae.call(o,"callee")&&(!Ot.call(o,"callee")||Ie.call(o)==c)}var xr=Array.isArray;function pn(o){return o!=null&&Vi(o.length)&&!gn(o)}function Fi(o){return Ui(o)&&pn(o)}var Di=Ct||qi;function gn(o){var l=or(o)?Ie.call(o):"";return l==E||l==Q}function Vi(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=s}function or(o){var l=typeof o;return!!o&&(l=="object"||l=="function")}function Ui(o){return!!o&&typeof o=="object"}function jr(o){return pn(o)?wr(o):nr(o)}function Ni(){return[]}function qi(){return!1}t.exports=Ii})(Lr,Lr.exports);var Ze=Lr.exports,Fr=function(){return Fr=Object.assign||function(e){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(e[c]=r[c])}return e},Fr.apply(this,arguments)};function Gi(t,e,r,n){function s(c){return c instanceof r?c:new r(function(d){d(c)})}return new(r||(r=Promise))(function(c,d){function v(E){try{m(n.next(E))}catch(Q){d(Q)}}function y(E){try{m(n.throw(E))}catch(Q){d(Q)}}function m(E){E.done?c(E.value):s(E.value).then(v,y)}m((n=n.apply(t,[])).next())})}function Wi(t,e){var r={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,s,c,d;return d={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(m){return function(E){return y([m,E])}}function y(m){if(n)throw new TypeError("Generator is already executing.");for(;d&&(d=0,m[0]&&(r=0)),r;)try{if(n=1,s&&(c=m[0]&2?s.return:m[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,m[1])).done)return c;switch(s=0,c&&(m=[m[0]&2,c.value]),m[0]){case 0:case 1:c=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,s=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(c=r.trys,!(c=c.length>0&&c[c.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!c||m[1]>c[0]&&m[1]<c[3])){r.label=m[1];break}if(m[0]===6&&r.label<c[1]){r.label=c[1],c=m;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(m);break}c[2]&&r.ops.pop(),r.trys.pop();continue}m=e.call(t,r)}catch(E){m=[6,E],s=0}finally{n=c=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function ar(t,e,r,n,s){return Gi(this,void 0,void 0,function(){var c,d;return Wi(this,function(v){switch(v.label){case 0:if(r===void 0)return[2];d=0,v.label=1;case 1:return d<r.length?[4,r[d](t,e,n,s,r)]:[3,4];case 2:if(c=v.sent(),c==="canceled")return[3,4];v.label=3;case 3:return d++,[3,1];case 4:return c!=="canceled"?[2,c]:[2]}})})}var Dr=function(t,e){return e===void 0&&(e={}),t?{trackedAnalytics:Fr({sdkCode:t.sdkCode,sdkSemver:t.sdkSemver,techVersion:t.techVersion},e)}:null},zi=function(){function t(e,r,n,s){var c=this;this.isMounted=!0,this.imgElement=e,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=Ze(r);ar(e,d,n,this.htmlPluginState,s).then(function(v){if(c.isMounted){c.htmlPluginState.pluginEventSubscription.forEach(function(m){m()});var y=Dr(s,v);c.imgElement.setAttribute("src",d.toURL(y))}})}return t.prototype.update=function(e,r,n){var s=this,c=Ze(e);ar(this.imgElement,c,r,this.htmlPluginState).then(function(d){if(s.isMounted){var v=Dr(n,d);s.imgElement.setAttribute("src",c.toURL(v))}})},t.prototype.unmount=function(){this.isMounted=!1},t}();let D=class{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return typeof e<"u"&&e!==null&&e!==""}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter(r=>this.hasValue(r)),this}setDelimiter(e){return this.delimiter=e,this}},Hi=class extends Error{constructor(e="Unsupported"){super(e)}};function Gr(t){return new Hi(t)}function Ji(){return this._qualifierModel||{error:Gr(`unsupported qualifier ${this.constructor.name}`)}}let Ki=class{constructor(){this._qualifierModel={}}toJson(){return Ji.apply(this)}},C=class extends Ki{constructor(e,r){super(),this.delimiter="_",this.key=e,r instanceof D?this.qualifierValue=r:(this.qualifierValue=new D,this.qualifierValue.addValue(r))}toString(){const{key:e,delimiter:r,qualifierValue:n}=this;return`${e}${r}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}},he=class extends C{constructor(e,r){let n;r?n=new D([e,`${r}`]).setDelimiter(":"):n=e,super("fl",n),this.flagValue=r}toString(){return super.toString().replace(/\./,"%2E")}getFlagValue(){return this.flagValue}};function Xi(t,e){const r=Array.from(t.entries());return e.forEach(n=>{r.push(["fl",n])}),r.sort().map(n=>n[1])}function Zi(){var t,e,r;const n=this._actionModel&&Object.keys(this._actionModel).length,s=(r=(e=(t=this._actionModel)===null||t===void 0?void 0:t.source)===null||e===void 0?void 0:e.transformation)===null||r===void 0?void 0:r.error;return s&&s instanceof Error?{error:s}:n?this._actionModel:{error:Gr(`unsupported action ${this.constructor.name}`)}}let eo=class{constructor(){this._actionModel={}}toJson(){return Zi.apply(this)}},_e=class extends eo{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),Xi(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if(typeof e=="string"){const[r,n]=e.toLowerCase().split("_");r==="fl"?this.flags.push(new he(n)):this.qualifiers.set(r,new C(r,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return typeof e=="string"?this.flags.push(new he(e)):e instanceof he&&this.flags.push(e),this}addValueToQualifier(e,r){return this.qualifiers.get(e).addValue(r),this}};class Wr extends _e{constructor(e){super(),this.regionType=e,this._actionModel.regionType=e}}class dr extends Wr{constructor(){super("custom")}x(e){return this._actionModel.x=e,this.addQualifier(new C("x",e)),this}y(e){return this._actionModel.y=e,this.addQualifier(new C("y",e)),this}width(e){return this._actionModel.width=e,this.addQualifier(new C("w",e)),this}height(e){return this._actionModel.height=e,this.addQualifier(new C("h",e)),this}static fromJson(e){const r=new dr;return e.width&&r.width(e.width),e.height&&r.height(e.height),e.x&&r.x(e.x),e.y&&r.y(e.y),r}}function to(){return new dr}function Vn(){return new Wr("faces")}function ro(){return new Wr("ocr_text")}class no extends _e{constructor(e){super(),this._actionModel={},this._strength=e,this._actionModel.actionType="blur",this._actionModel.strength=e}region(e){return this._region=e,this._actionModel.region=e.toJson(),this}strength(e){return this._strength=e,this._actionModel.strength=e,this}prepareQualifiers(){const e=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(n=>this.addQualifier(n)),this._region.regionType==="custom"&&this.addQualifier(new C("e",`blur_region${e}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new C("e",`blur_region${e}`)),this.addQualifier(new C("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new C("e",`blur_faces${e}`))):this.addQualifier(new C("e",`blur${e}`))}static fromJson(e){const{strength:r,region:n}=e,s=new this(r);return r&&s.strength(r),n&&n.regionType==="faces"&&s.region(Vn()),n&&n.regionType==="ocr_text"&&s.region(ro()),n&&n.regionType==="custom"&&s.region(dr.fromJson(n)),s}}function vt(t){const e={};return Object.keys(t).forEach(r=>{e[t[r]]=r}),e}const Un={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad"},io={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},Nn={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},qn={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},oo={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},Qn={444:"CHROMA_444",420:"CHROMA_420"},so={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},ao=vt(Qn);vt(so);const uo=vt(Un),co=vt(io),Bn=vt(Nn);vt(qn);vt(oo);class Yn extends _e{constructor(e,r){super(),this._actionModel={},this._actionModel.actionType=Bn[e]||e;const n=this.createEffectQualifier(e,r);this.addQualifier(n)}createEffectQualifier(e,r){let n;return r?n=new D([e,`${r}`]).setDelimiter(":"):n=new D(e),new C("e",n)}static fromJson(e){const{actionType:r,level:n,strength:s}=e,c=Nn[r]||r;return new this(c,n||s)}}class lo extends Yn{constructor(e,r){super(e,r),this.LEVEL_NAME="level",this._actionModel={},this.effectType=e,this._actionModel.actionType=Bn[e]||e,r&&this.setLevel(r)}setLevel(e){this._actionModel[this.LEVEL_NAME]=e;const r=this.createEffectQualifier(this.effectType,e);return this.addQualifier(r),this}}function hr(t){return t&&(t.match(/^#/)?`rgb:${t.substr(1)}`:t)}class fo extends _e{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(e){return this._actionModel.numOfColors=e,this._numOfColors=e,this}detailsLevel(e){return this._actionModel.detailLevel=e,this._detailsLevel=e,this}despeckleLevel(e){return this._actionModel.despeckleLevel=e,this._despeckleLevel=e,this}cornersLevel(e){return this._actionModel.cornersLevel=e,this._cornersLevel=e,this}paths(e){return this._actionModel.paths=e,this._paths=e,this}prepareQualifiers(){let e="vectorize";this._numOfColors&&(e+=`:${new D(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(e+=`:${new D(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(e+=`:${new D(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(e+=`:${new D(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(e+=`:${new D(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new C("e",e))}static fromJson(e){const{actionType:r,paths:n,cornersLevel:s,despeckleLevel:c,detailLevel:d,numOfColors:v}=e,y=new this;return n&&y.paths(n),s&&y.cornersLevel(s),c&&y.despeckleLevel(c),d&&y.detailsLevel(d),v&&y.numOfColors(v),y}}class ho extends lo{level(e){return this._actionModel.level=e,this.setLevel(e)}}class po extends _e{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new C("e",new D("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new C("e",new D(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(e){return this._actionModel.type="stripes",this._actionModel.stripesStrength=e,this.addQualifier(new C("e",new D(["assist_colorblind",e]).setDelimiter(":")))}static fromJson(e){const{actionType:r,type:n,stripesStrength:s}=e,c=new this;return n==="xray"&&c.xray(),n==="stripes"&&s&&c.stripesStrength(s),c}}class go extends ho{color(e){return this._actionModel.color=e,this.addQualifier(new C("co",new D(hr(e))))}static fromJson(e){const{actionType:r,level:n,color:s}=e,c=new this(r,n);return s&&c.color(s),c}}class vo extends _e{constructor(e){super(),this._actionModel={},this._squareSize=e,this._actionModel.actionType="pixelate",this._actionModel.squareSize=e}region(e){return this._region=e,this._actionModel.region={regionType:this._region.regionType},this}squareSize(e){return this._squareSize=e,this._actionModel.squareSize=e,this}prepareQualifiers(){const e=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(n=>this.addQualifier(n)),this._region.regionType==="custom"&&this.addQualifier(new C("e",`pixelate_region${e}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new C("e",`pixelate_region${e}`)),this.addQualifier(new C("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new C("e",`pixelate_faces${e}`))):this.addQualifier(new C("e",`pixelate${e}`))}static fromJson(e){const{region:r,squareSize:n}=e,s=new this(n);return n&&s.squareSize(n),r&&r.regionType==="faces"&&s.region(Vn()),r&&r.regionType==="custom"&&s.region(to()),s}}function mo(t){return new no(t)}function yo(){return new Yn("grayscale")}function En(t){return new go("colorize",t)}function _o(){return new fo}function bo(){return new po}function wo(t){return new vo(t)}let Eo=class extends _e{constructor(e){super(),this._actionModel={},this.addQualifier(new C("b",new D(hr(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:r}=e;return new this(r)}},Tn=class{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:Gr(`unsupported action ${this.constructor.name}`)}}};function To(t){const e=t;return"error"in e&&!!e.error}function Oo(){return new he("ignore_aspect_ratio")}function So(){return new he("lossy")}function Co(){return new he("preserve_transparency")}function Ao(t){return new he("progressive",t)}function Ro(){return new he("region_relative")}function Po(){return new he("relative")}let zr=class extends D{constructor(e){super(e),this.val=e}getValue(){return this.val}},Gn=class extends _e{constructor(e,r,n){super(),this._actionModel={};let s;r instanceof zr?s=r.getValue():s=r,this._actionModel.actionType=co[e],this._actionModel[n]=s,this.addQualifier(new C(e,r))}},xo=class extends he{constructor(e){super("progressive",e)}},Vr=class extends Gn{constructor(e,r){super(e,r,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(So()),this}progressive(e){return e instanceof xo?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(Ao(e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(Co()),this}static fromJson(e){const{formatType:r,lossy:n,progressive:s,preserveTransparency:c}=e;let d;return r?d=new this("f",r):d=new this("f"),s&&(s.mode?d.progressive(s.mode):d.progressive()),n&&d.lossy(),c&&d.preserveTransparency(),d}},pr=class Wn{constructor(){this.actions=[]}addAction(e){let r;if(typeof e=="string"){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";r=new Tn(e)}else r=e;return this.actions.push(r),this}addTransformation(e){return e instanceof Wn?this.actions=this.actions.concat(e.actions):this.actions.push(new Tn(e)),this}toString(){return this.actions.map(e=>e.toString()).filter(e=>e).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new Vr("q",e)),this}format(e){return this.addAction(new Vr("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new Eo(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const r=new _e;let n=e;return typeof e=="string"&&(n=new he(e)),r.addQualifier(n),this.addAction(r)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const r of this.actions){const n=r.toJson();if(To(n))return n;e.push(n)}return{actions:e}}};function On(t){const e=t.toString();return e.match(/[A-Z]/gi)||e.length>1&&e[0]==="0"?e:!isNaN(parseFloat(e))&&e.indexOf(":")===-1&&e.indexOf(".")===-1?`${e}.0`:e}class jo extends D{}class $o extends _e{constructor(e,r,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=uo[e]||e,this.addQualifier(new C("c",e)),r&&this.width(r),n&&this.height(n)}height(e){return this._actionModel.dimensions.height=e,this.addQualifier(new C("h",e))}width(e){return this._actionModel.dimensions.width=e,this.addQualifier(new C("w",e))}aspectRatio(e){if(e instanceof jo)return this._actionModel.dimensions.aspectRatio=`${e}`,this.addQualifier(new C("ar",e));if(typeof e=="number"||typeof e=="string")return this._actionModel.dimensions.aspectRatio=On(e),this.addQualifier(new C("ar",On(e)));if(e instanceof he)return this._actionModel.dimensions.aspectRatio=`${e.qualifierValue}`,this.addFlag(e)}relative(){return this._actionModel.relative=!0,this.addFlag(Po())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(Ro())}static fromJson(e){const{actionType:r,dimensions:n,relative:s,regionRelative:c}=e,{aspectRatio:d,width:v,height:y}=n,m=Un[r]||r,E=new this(m,v,y);return d&&E.aspectRatio(d==="ignore_aspect_ratio"?Oo():d),s&&E.relative(),c&&E.regionRelative(),E}}class Hr extends C{constructor(e){super("g",new D(e))}}class zn extends Hr{constructor(){super("auto")}autoFocus(...e){return this.addValue(e),this}}class Hn extends Hr{constructor(e){super(e)}fallbackGravity(e){return this.addValue(e.qualifierValue),this}}class Jn extends Hr{constructor(e){super(e)}}function Mo(t){return new Jn(t)}function Kn(...t){const e=[...t];return new Hn(e)}function Xn(){return new zn}class gr extends D{constructor(e){super(),this.name=e}toString(){return this.name}}function ko(){return new gr("ocr_text")}function Io(t){return t&&`${t}`.split(":")[0]==="auto"}function Lo(t){const e=Jr(t);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(e)}function Jr(t){return`${t}`.replace("g_","")}function Fo(t){return{compass:Jr(t),gravityType:"direction"}}function Do(t){return Jr(t)==="ocr_text"}function Vo(){return{gravityType:"ocr"}}function Uo(t){return`${t.qualifierValue}`.split(":")[0]==="auto"}function No(t){const r=t.toString().split("_"),n={object:r[0]};return r.length>1&&(r[1]==="avoid"?n.avoid=!0:n.weight=+r[1]),n}function Zn(t){let e;const r=t==="auto"?new zn:t;return`${t}`.startsWith("auto:")?e=`${t}`.split(":").filter(s=>s!=="auto"):e=r.qualifierValue.values.filter(s=>s!=="auto"),{gravityType:"auto",autoFocus:e.map(No)}}function qo(t){const e=`${t}`.split(":").includes("auto"),r=t.qualifierValue.values,s={gravityType:"object",focusOnObjects:(e?r.slice(0,r.length-1):r).map(c=>`${c}`)};if(e){const c=r[r.length-1].values.slice(1),d=Xn().autoFocus(...c);s.fallbackGravity=Zn(d)}return s}function Qo(t){const r=t.split(":").map(n=>new gr(n));return new Hn(r)}function Bo(t){return Lo(t)?Fo(t):Do(t)?Vo():Io(t)||Uo(t)?Zn(t):qo(typeof t=="string"?Qo(t):t)}class Kr extends D{constructor(e,r){super(),this._weight=r,this.focusOn=e,this.shouldAvoid=!1}static focusOn(e,r){return new Kr(e,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(e){return this._weight=e,this}avoid(){return this.shouldAvoid=!0,this}}class ei extends D{constructor(e){super(),this.val=e}toString(){return this.val}}function Yo(t){return t.gravityType==="direction"}function Go(t){return t.gravityType==="ocr"}function Wo(t){return t.gravityType==="auto"}function zo(t){const{object:e,weight:r,avoid:n}=t,s=new Kr(new gr(e));return(r||r===0)&&s.weight(r),n&&s.avoid(),s}function ti(t){const r=(t.autoFocus||[]).map(zo);return Xn().autoFocus(...r)}function Ho(t){const e=(t.focusOnObjects||[]).map(n=>new gr(n)),r=Kn(...e);if(t.fallbackGravity){const n=ti(t.fallbackGravity);r.fallbackGravity(n)}return r}function Jo(t){return Yo(t)?new Jn(new ei(t.compass)):Go(t)?Kn(ko()):Wo(t)?ti(t):Ho(t)}class Xr extends $o{gravity(e){this._actionModel.gravity=Bo(e);const r=typeof e=="string"?new C("g",e):e;return this.addQualifier(r)}static fromJson(e){const r=super.fromJson.apply(this,[e]);return e.gravity&&r.gravity(Jo(e.gravity)),r}}class Jt extends C{constructor(e){super("b"),e&&this.addValue(e)}}const ri=100,Ko=0;class Xo extends Jt{intensity(e){return this.intensityLevel=e,this}brightness(e){return this.brightnessLevel=e,this}toString(){const e=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",r=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${ri}:${this.brightnessLevel}`:"";return`b_blurred${e}${r}`}}var ni=Xo;class Zr extends Jt{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...e){return this._palette=e.map(r=>hr(r)),this}}class ii extends Zr{toString(){return`
|
|
133
|
+
&:hover {
|
|
134
|
+
${a||"transition: all 0.2s;"}
|
|
135
|
+
${r}
|
|
136
|
+
${n}
|
|
137
|
+
${o}
|
|
138
|
+
}
|
|
139
|
+
`},Qi=()=>({shouldForwardProp:t=>!yi.includes(t)}),Hi=io.div.withConfig(Qi())`
|
|
140
|
+
${Ui}
|
|
141
|
+
${Bi}
|
|
142
|
+
${qi}
|
|
143
|
+
${Gi}
|
|
144
|
+
${Yi}
|
|
145
|
+
${zi}
|
|
146
|
+
${Wi}
|
|
147
|
+
`;var St=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zn={exports:{}};(function(t,e){var r=200,n="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",u="[object Array]",f="[object Boolean]",h="[object Date]",g="[object Error]",_="[object Function]",S="[object GeneratorFunction]",A="[object Map]",$="[object Number]",B="[object Object]",q="[object Promise]",Z="[object RegExp]",F="[object Set]",R="[object String]",z="[object Symbol]",G="[object WeakMap]",W="[object ArrayBuffer]",k="[object DataView]",O="[object Float32Array]",be="[object Float64Array]",Ce="[object Int8Array]",pe="[object Int16Array]",et="[object Int32Array]",ot="[object Uint8Array]",ge="[object Uint8ClampedArray]",xe="[object Uint16Array]",Le="[object Uint32Array]",de=/[\\^$.*+?()[\]{}|]/g,we=/\w*$/,ke=/^\[object .+?Constructor\]$/,ne=/^(?:0|[1-9]\d*)$/,V={};V[a]=V[u]=V[W]=V[k]=V[f]=V[h]=V[O]=V[be]=V[Ce]=V[pe]=V[et]=V[A]=V[$]=V[B]=V[Z]=V[F]=V[R]=V[z]=V[ot]=V[ge]=V[xe]=V[Le]=!0,V[g]=V[_]=V[G]=!1;var Ae=typeof St=="object"&&St&&St.Object===Object&&St,re=typeof self=="object"&&self&&self.Object===Object&&self,j=Ae||re||Function("return this")(),We=e&&!e.nodeType&&e,Fe=We&&!0&&t&&!t.nodeType&&t,Ee=Fe&&Fe.exports===We;function je(s,d){return s.set(d[0],d[1]),s}function me(s,d){return s.add(d),s}function oe(s,d){for(var m=-1,E=s?s.length:0;++m<E&&d(s[m],m,s)!==!1;);return s}function Oe(s,d){for(var m=-1,E=d.length,ve=s.length;++m<E;)s[ve+m]=d[m];return s}function Qe(s,d,m,E){for(var ve=-1,Pe=s?s.length:0;++ve<Pe;)m=d(m,s[ve],ve,s);return m}function ye(s,d){for(var m=-1,E=Array(s);++m<s;)E[m]=d(m);return E}function Ut(s,d){return s==null?void 0:s[d]}function _t(s){var d=!1;if(s!=null&&typeof s.toString!="function")try{d=!!(s+"")}catch{}return d}function He(s){var d=-1,m=Array(s.size);return s.forEach(function(E,ve){m[++d]=[ve,E]}),m}function tt(s,d){return function(m){return s(d(m))}}function rt(s){var d=-1,m=Array(s.size);return s.forEach(function(E){m[++d]=E}),m}var At=Array.prototype,it=Function.prototype,st=Object.prototype,at=j["__core-js_shared__"],ct=function(){var s=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Ot=it.toString,Ve=st.hasOwnProperty,ut=st.toString,Bt=RegExp("^"+Ot.call(Ve).replace(de,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=Ee?j.Buffer:void 0,qt=j.Symbol,Tt=j.Uint8Array,zt=tt(Object.getPrototypeOf,Object),Ue=Object.create,Gt=st.propertyIsEnumerable,sr=At.splice,Yt=Object.getOwnPropertySymbols,Wt=Ne?Ne.isBuffer:void 0,ar=tt(Object.keys,Object),bt=T(j,"DataView"),lt=T(j,"Map"),Be=T(j,"Promise"),ft=T(j,"Set"),Ie=T(j,"WeakMap"),Me=T(Object,"create"),dt=kt(bt),wt=kt(lt),cr=kt(Be),Qt=kt(ft),ur=kt(Ie),ht=qt?qt.prototype:void 0,Rt=ht?ht.valueOf:void 0;function Je(s){var d=-1,m=s?s.length:0;for(this.clear();++d<m;){var E=s[d];this.set(E[0],E[1])}}function lr(){this.__data__=Me?Me(null):{}}function Ht(s){return this.has(s)&&delete this.__data__[s]}function fr(s){var d=this.__data__;if(Me){var m=d[s];return m===n?void 0:m}return Ve.call(d,s)?d[s]:void 0}function dr(s){var d=this.__data__;return Me?d[s]!==void 0:Ve.call(d,s)}function hr(s,d){var m=this.__data__;return m[s]=Me&&d===void 0?n:d,this}Je.prototype.clear=lr,Je.prototype.delete=Ht,Je.prototype.get=fr,Je.prototype.has=dr,Je.prototype.set=hr;function Te(s){var d=-1,m=s?s.length:0;for(this.clear();++d<m;){var E=s[d];this.set(E[0],E[1])}}function c(){this.__data__=[]}function y(s){var d=this.__data__,m=$t(d,s);if(m<0)return!1;var E=d.length-1;return m==E?d.pop():sr.call(d,m,1),!0}function b(s){var d=this.__data__,m=$t(d,s);return m<0?void 0:d[m][1]}function C(s){return $t(this.__data__,s)>-1}function Y(s,d){var m=this.__data__,E=$t(m,s);return E<0?m.push([s,d]):m[E][1]=d,this}Te.prototype.clear=c,Te.prototype.delete=y,Te.prototype.get=b,Te.prototype.has=C,Te.prototype.set=Y;function U(s){var d=-1,m=s?s.length:0;for(this.clear();++d<m;){var E=s[d];this.set(E[0],E[1])}}function L(){this.__data__={hash:new Je,map:new(lt||Te),string:new Je}}function M(s){return x(this,s).delete(s)}function le(s){return x(this,s).get(s)}function K(s){return x(this,s).has(s)}function ee(s,d){return x(this,s).set(s,d),this}U.prototype.clear=L,U.prototype.delete=M,U.prototype.get=le,U.prototype.has=K,U.prototype.set=ee;function ie(s){this.__data__=new Te(s)}function qe(){this.__data__=new Te}function Pt(s){return this.__data__.delete(s)}function De(s){return this.__data__.get(s)}function mn(s){return this.__data__.has(s)}function Rr(s,d){var m=this.__data__;if(m instanceof Te){var E=m.__data__;if(!lt||E.length<r-1)return E.push([s,d]),this;m=this.__data__=new U(E)}return m.set(s,d),this}ie.prototype.clear=qe,ie.prototype.delete=Pt,ie.prototype.get=De,ie.prototype.has=mn,ie.prototype.set=Rr;function yn(s,d){var m=An(s)||Hs(s)?ye(s.length,String):[],E=m.length,ve=!!E;for(var Pe in s)Ve.call(s,Pe)&&!(ve&&(Pe=="length"||ze(Pe,E)))&&m.push(Pe);return m}function pr(s,d,m){var E=s[d];(!(Ve.call(s,d)&&Oo(E,m))||m===void 0&&!(d in s))&&(s[d]=m)}function $t(s,d){for(var m=s.length;m--;)if(Oo(s[m][0],d))return m;return-1}function Pr(s,d){return s&&v(d,On(d),s)}function gr(s,d,m,E,ve,Pe,gt){var $e;if(E&&($e=Pe?E(s,ve,Pe,gt):E(s)),$e!==void 0)return $e;if(!Mr(s))return s;var Po=An(s);if(Po){if($e=Re(s),!d)return p(s,$e)}else{var Jt=ae(s),$o=Jt==_||Jt==S;if(Ks(s))return bn(s,d);if(Jt==B||Jt==a||$o&&!Pe){if(_t(s))return Pe?s:{};if($e=Se($o?{}:s),!d)return w(s,Pr($e,s))}else{if(!V[Jt])return Pe?s:{};$e=pt(s,Jt,gr,d)}}gt||(gt=new ie);var ko=gt.get(s);if(ko)return ko;if(gt.set(s,$e),!Po)var jo=m?N(s):On(s);return oe(jo||s,function(Tn,Dr){jo&&(Dr=Tn,Tn=s[Dr]),pr($e,Dr,gr(Tn,d,m,E,Dr,s,gt))}),$e}function $r(s){return Mr(s)?Ue(s):{}}function kr(s,d,m){var E=d(s);return An(s)?E:Oe(E,m(s))}function vn(s){return ut.call(s)}function _n(s){if(!Mr(s)||Ir(s))return!1;var d=Ro(s)||_t(s)?Bt:ke;return d.test(kt(s))}function jr(s){if(!yr(s))return ar(s);var d=[];for(var m in Object(s))Ve.call(s,m)&&m!="constructor"&&d.push(m);return d}function bn(s,d){if(d)return s.slice();var m=new s.constructor(s.length);return s.copy(m),m}function mr(s){var d=new s.constructor(s.byteLength);return new Tt(d).set(new Tt(s)),d}function wn(s,d){var m=d?mr(s.buffer):s.buffer;return new s.constructor(m,s.byteOffset,s.byteLength)}function En(s,d,m){var E=d?m(He(s),!0):He(s);return Qe(E,je,new s.constructor)}function Sn(s){var d=new s.constructor(s.source,we.exec(s));return d.lastIndex=s.lastIndex,d}function Cn(s,d,m){var E=d?m(rt(s),!0):rt(s);return Qe(E,me,new s.constructor)}function i(s){return Rt?Object(Rt.call(s)):{}}function l(s,d){var m=d?mr(s.buffer):s.buffer;return new s.constructor(m,s.byteOffset,s.length)}function p(s,d){var m=-1,E=s.length;for(d||(d=Array(E));++m<E;)d[m]=s[m];return d}function v(s,d,m,E){m||(m={});for(var ve=-1,Pe=d.length;++ve<Pe;){var gt=d[ve],$e=void 0;pr(m,gt,$e===void 0?s[gt]:$e)}return m}function w(s,d){return v(s,se(s),d)}function N(s){return kr(s,On,se)}function x(s,d){var m=s.__data__;return xn(d)?m[typeof d=="string"?"string":"hash"]:m.map}function T(s,d){var m=Ut(s,d);return _n(m)?m:void 0}var se=Yt?tt(Yt,Object):ea,ae=vn;(bt&&ae(new bt(new ArrayBuffer(1)))!=k||lt&&ae(new lt)!=A||Be&&ae(Be.resolve())!=q||ft&&ae(new ft)!=F||Ie&&ae(new Ie)!=G)&&(ae=function(s){var d=ut.call(s),m=d==B?s.constructor:void 0,E=m?kt(m):void 0;if(E)switch(E){case dt:return k;case wt:return A;case cr:return q;case Qt:return F;case ur:return G}return d});function Re(s){var d=s.length,m=s.constructor(d);return d&&typeof s[0]=="string"&&Ve.call(s,"index")&&(m.index=s.index,m.input=s.input),m}function Se(s){return typeof s.constructor=="function"&&!yr(s)?$r(zt(s)):{}}function pt(s,d,m,E){var ve=s.constructor;switch(d){case W:return mr(s);case f:case h:return new ve(+s);case k:return wn(s,E);case O:case be:case Ce:case pe:case et:case ot:case ge:case xe:case Le:return l(s,E);case A:return En(s,E,m);case $:case R:return new ve(s);case Z:return Sn(s);case F:return Cn(s,E,m);case z:return i(s)}}function ze(s,d){return d=d??o,!!d&&(typeof s=="number"||ne.test(s))&&s>-1&&s%1==0&&s<d}function xn(s){var d=typeof s;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?s!=="__proto__":s===null}function Ir(s){return!!ct&&ct in s}function yr(s){var d=s&&s.constructor,m=typeof d=="function"&&d.prototype||st;return s===m}function kt(s){if(s!=null){try{return Ot.call(s)}catch{}try{return s+""}catch{}}return""}function Qs(s){return gr(s,!0,!0)}function Oo(s,d){return s===d||s!==s&&d!==d}function Hs(s){return Js(s)&&Ve.call(s,"callee")&&(!Gt.call(s,"callee")||ut.call(s)==a)}var An=Array.isArray;function To(s){return s!=null&&Xs(s.length)&&!Ro(s)}function Js(s){return Zs(s)&&To(s)}var Ks=Wt||ta;function Ro(s){var d=Mr(s)?ut.call(s):"";return d==_||d==S}function Xs(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=o}function Mr(s){var d=typeof s;return!!s&&(d=="object"||d=="function")}function Zs(s){return!!s&&typeof s=="object"}function On(s){return To(s)?yn(s):jr(s)}function ea(){return[]}function ta(){return!1}t.exports=Qs})(zn,zn.exports);var Ct=zn.exports,Gn=function(){return Gn=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Gn.apply(this,arguments)};function Pc(t,e,r,n){function o(a){return a instanceof r?a:new r(function(u){u(a)})}return new(r||(r=Promise))(function(a,u){function f(_){try{g(n.next(_))}catch(S){u(S)}}function h(_){try{g(n.throw(_))}catch(S){u(S)}}function g(_){_.done?a(_.value):o(_.value).then(f,h)}g((n=n.apply(t,[])).next())})}function $c(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(g){return function(_){return h([g,_])}}function h(g){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,g[0]&&(r=0)),r;)try{if(n=1,o&&(a=g[0]&2?o.return:g[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,g[1])).done)return a;switch(o=0,a&&(g=[g[0]&2,a.value]),g[0]){case 0:case 1:a=g;break;case 4:return r.label++,{value:g[1],done:!1};case 5:r.label++,o=g[1],g=[0];continue;case 7:g=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(g[0]===6||g[0]===2)){r=0;continue}if(g[0]===3&&(!a||g[1]>a[0]&&g[1]<a[3])){r.label=g[1];break}if(g[0]===6&&r.label<a[1]){r.label=a[1],a=g;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(g);break}a[2]&&r.ops.pop(),r.trys.pop();continue}g=e.call(t,r)}catch(_){g=[6,_],o=0}finally{n=a=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}}function Jr(t,e,r,n,o){return Pc(this,void 0,void 0,function(){var a,u;return $c(this,function(f){switch(f.label){case 0:if(r===void 0)return[2];u=0,f.label=1;case 1:return u<r.length?[4,r[u](t,e,n,o,r)]:[3,4];case 2:if(a=f.sent(),a==="canceled")return[3,4];f.label=3;case 3:return u++,[3,1];case 4:return a!=="canceled"?[2,a]:[2]}})})}var Yn=function(t,e){return e===void 0&&(e={}),t?{trackedAnalytics:Gn({sdkCode:t.sdkCode,sdkSemver:t.sdkSemver,techVersion:t.techVersion},e)}:null},kc=function(){function t(e,r,n,o){var a=this;this.isMounted=!0,this.imgElement=e,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var u=Ct(r);Jr(e,u,n,this.htmlPluginState,o).then(function(f){if(a.isMounted){a.htmlPluginState.pluginEventSubscription.forEach(function(g){g()});var h=Yn(o,f);a.imgElement.setAttribute("src",u.toURL(h))}})}return t.prototype.update=function(e,r,n){var o=this,a=Ct(e);Jr(this.imgElement,a,r,this.htmlPluginState).then(function(u){if(o.isMounted){var f=Yn(n,u);o.imgElement.setAttribute("src",a.toURL(f))}})},t.prototype.unmount=function(){this.isMounted=!1},t}();let te=class{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return typeof e<"u"&&e!==null&&e!==""}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter(r=>this.hasValue(r)),this}setDelimiter(e){return this.delimiter=e,this}},jc=class extends Error{constructor(e="Unsupported"){super(e)}};function so(t){return new jc(t)}function Ic(){return this._qualifierModel||{error:so(`unsupported qualifier ${this.constructor.name}`)}}let Mc=class{constructor(){this._qualifierModel={}}toJson(){return Ic.apply(this)}},I=class extends Mc{constructor(e,r){super(),this.delimiter="_",this.key=e,r instanceof te?this.qualifierValue=r:(this.qualifierValue=new te,this.qualifierValue.addValue(r))}toString(){const{key:e,delimiter:r,qualifierValue:n}=this;return`${e}${r}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}},Ge=class extends I{constructor(e,r){let n;r?n=new te([e,`${r}`]).setDelimiter(":"):n=e,super("fl",n),this.flagValue=r}toString(){return super.toString().replace(/\./,"%2E")}getFlagValue(){return this.flagValue}};function Dc(t,e){const r=Array.from(t.entries());return e.forEach(n=>{r.push(["fl",n])}),r.sort().map(n=>n[1])}function Lc(){var t,e,r;const n=this._actionModel&&Object.keys(this._actionModel).length,o=(r=(e=(t=this._actionModel)===null||t===void 0?void 0:t.source)===null||e===void 0?void 0:e.transformation)===null||r===void 0?void 0:r.error;return o&&o instanceof Error?{error:o}:n?this._actionModel:{error:so(`unsupported action ${this.constructor.name}`)}}let Fc=class{constructor(){this._actionModel={}}toJson(){return Lc.apply(this)}},Xe=class extends Fc{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),Dc(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if(typeof e=="string"){const[r,n]=e.toLowerCase().split("_");r==="fl"?this.flags.push(new Ge(n)):this.qualifiers.set(r,new I(r,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return typeof e=="string"?this.flags.push(new Ge(e)):e instanceof Ge&&this.flags.push(e),this}addValueToQualifier(e,r){return this.qualifiers.get(e).addValue(r),this}};class ao extends Xe{constructor(e){super(),this.regionType=e,this._actionModel.regionType=e}}class cn extends ao{constructor(){super("custom")}x(e){return this._actionModel.x=e,this.addQualifier(new I("x",e)),this}y(e){return this._actionModel.y=e,this.addQualifier(new I("y",e)),this}width(e){return this._actionModel.width=e,this.addQualifier(new I("w",e)),this}height(e){return this._actionModel.height=e,this.addQualifier(new I("h",e)),this}static fromJson(e){const r=new cn;return e.width&&r.width(e.width),e.height&&r.height(e.height),e.x&&r.x(e.x),e.y&&r.y(e.y),r}}function Vc(){return new cn}function Ji(){return new ao("faces")}function Nc(){return new ao("ocr_text")}class Uc extends Xe{constructor(e){super(),this._actionModel={},this._strength=e,this._actionModel.actionType="blur",this._actionModel.strength=e}region(e){return this._region=e,this._actionModel.region=e.toJson(),this}strength(e){return this._strength=e,this._actionModel.strength=e,this}prepareQualifiers(){const e=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(n=>this.addQualifier(n)),this._region.regionType==="custom"&&this.addQualifier(new I("e",`blur_region${e}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new I("e",`blur_region${e}`)),this.addQualifier(new I("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new I("e",`blur_faces${e}`))):this.addQualifier(new I("e",`blur${e}`))}static fromJson(e){const{strength:r,region:n}=e,o=new this(r);return r&&o.strength(r),n&&n.regionType==="faces"&&o.region(Ji()),n&&n.regionType==="ocr_text"&&o.region(Nc()),n&&n.regionType==="custom"&&o.region(cn.fromJson(n)),o}}function Vt(t){const e={};return Object.keys(t).forEach(r=>{e[t[r]]=r}),e}const Ki={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad"},Bc={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},Xi={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Zi={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},qc={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},es={444:"CHROMA_444",420:"CHROMA_420"},zc={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},Gc=Vt(es);Vt(zc);const Yc=Vt(Ki),Wc=Vt(Bc),ts=Vt(Xi);Vt(Zi);Vt(qc);class rs extends Xe{constructor(e,r){super(),this._actionModel={},this._actionModel.actionType=ts[e]||e;const n=this.createEffectQualifier(e,r);this.addQualifier(n)}createEffectQualifier(e,r){let n;return r?n=new te([e,`${r}`]).setDelimiter(":"):n=new te(e),new I("e",n)}static fromJson(e){const{actionType:r,level:n,strength:o}=e,a=Xi[r]||r;return new this(a,n||o)}}class Qc extends rs{constructor(e,r){super(e,r),this.LEVEL_NAME="level",this._actionModel={},this.effectType=e,this._actionModel.actionType=ts[e]||e,r&&this.setLevel(r)}setLevel(e){this._actionModel[this.LEVEL_NAME]=e;const r=this.createEffectQualifier(this.effectType,e);return this.addQualifier(r),this}}function un(t){return t&&(t.match(/^#/)?`rgb:${t.substr(1)}`:t)}class Hc extends Xe{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(e){return this._actionModel.numOfColors=e,this._numOfColors=e,this}detailsLevel(e){return this._actionModel.detailLevel=e,this._detailsLevel=e,this}despeckleLevel(e){return this._actionModel.despeckleLevel=e,this._despeckleLevel=e,this}cornersLevel(e){return this._actionModel.cornersLevel=e,this._cornersLevel=e,this}paths(e){return this._actionModel.paths=e,this._paths=e,this}prepareQualifiers(){let e="vectorize";this._numOfColors&&(e+=`:${new te(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(e+=`:${new te(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(e+=`:${new te(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(e+=`:${new te(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(e+=`:${new te(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new I("e",e))}static fromJson(e){const{actionType:r,paths:n,cornersLevel:o,despeckleLevel:a,detailLevel:u,numOfColors:f}=e,h=new this;return n&&h.paths(n),o&&h.cornersLevel(o),a&&h.despeckleLevel(a),u&&h.detailsLevel(u),f&&h.numOfColors(f),h}}class Jc extends Qc{level(e){return this._actionModel.level=e,this.setLevel(e)}}class Kc extends Xe{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new I("e",new te("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new I("e",new te(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(e){return this._actionModel.type="stripes",this._actionModel.stripesStrength=e,this.addQualifier(new I("e",new te(["assist_colorblind",e]).setDelimiter(":")))}static fromJson(e){const{actionType:r,type:n,stripesStrength:o}=e,a=new this;return n==="xray"&&a.xray(),n==="stripes"&&o&&a.stripesStrength(o),a}}class Xc extends Jc{color(e){return this._actionModel.color=e,this.addQualifier(new I("co",new te(un(e))))}static fromJson(e){const{actionType:r,level:n,color:o}=e,a=new this(r,n);return o&&a.color(o),a}}class Zc extends Xe{constructor(e){super(),this._actionModel={},this._squareSize=e,this._actionModel.actionType="pixelate",this._actionModel.squareSize=e}region(e){return this._region=e,this._actionModel.region={regionType:this._region.regionType},this}squareSize(e){return this._squareSize=e,this._actionModel.squareSize=e,this}prepareQualifiers(){const e=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(n=>this.addQualifier(n)),this._region.regionType==="custom"&&this.addQualifier(new I("e",`pixelate_region${e}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new I("e",`pixelate_region${e}`)),this.addQualifier(new I("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new I("e",`pixelate_faces${e}`))):this.addQualifier(new I("e",`pixelate${e}`))}static fromJson(e){const{region:r,squareSize:n}=e,o=new this(n);return n&&o.squareSize(n),r&&r.regionType==="faces"&&o.region(Ji()),r&&r.regionType==="custom"&&o.region(Vc()),o}}function eu(t){return new Uc(t)}function tu(){return new rs("grayscale")}function ei(t){return new Xc("colorize",t)}function ru(){return new Hc}function nu(){return new Kc}function ou(t){return new Zc(t)}let iu=class extends Xe{constructor(e){super(),this._actionModel={},this.addQualifier(new I("b",new te(un(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:r}=e;return new this(r)}},ti=class{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:so(`unsupported action ${this.constructor.name}`)}}};function su(t){const e=t;return"error"in e&&!!e.error}function au(){return new Ge("ignore_aspect_ratio")}function cu(){return new Ge("lossy")}function uu(){return new Ge("preserve_transparency")}function lu(t){return new Ge("progressive",t)}function fu(){return new Ge("region_relative")}function du(){return new Ge("relative")}let co=class extends te{constructor(e){super(e),this.val=e}getValue(){return this.val}},ns=class extends Xe{constructor(e,r,n){super(),this._actionModel={};let o;r instanceof co?o=r.getValue():o=r,this._actionModel.actionType=Wc[e],this._actionModel[n]=o,this.addQualifier(new I(e,r))}},hu=class extends Ge{constructor(e){super("progressive",e)}},Wn=class extends ns{constructor(e,r){super(e,r,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(cu()),this}progressive(e){return e instanceof hu?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(lu(e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(uu()),this}static fromJson(e){const{formatType:r,lossy:n,progressive:o,preserveTransparency:a}=e;let u;return r?u=new this("f",r):u=new this("f"),o&&(o.mode?u.progressive(o.mode):u.progressive()),n&&u.lossy(),a&&u.preserveTransparency(),u}},ln=class os{constructor(){this.actions=[]}addAction(e){let r;if(typeof e=="string"){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";r=new ti(e)}else r=e;return this.actions.push(r),this}addTransformation(e){return e instanceof os?this.actions=this.actions.concat(e.actions):this.actions.push(new ti(e)),this}toString(){return this.actions.map(e=>e.toString()).filter(e=>e).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new Wn("q",e)),this}format(e){return this.addAction(new Wn("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new iu(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const r=new Xe;let n=e;return typeof e=="string"&&(n=new Ge(e)),r.addQualifier(n),this.addAction(r)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const r of this.actions){const n=r.toJson();if(su(n))return n;e.push(n)}return{actions:e}}};function ri(t){const e=t.toString();return e.match(/[A-Z]/gi)||e.length>1&&e[0]==="0"?e:!isNaN(parseFloat(e))&&e.indexOf(":")===-1&&e.indexOf(".")===-1?`${e}.0`:e}class pu extends te{}class gu extends Xe{constructor(e,r,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=Yc[e]||e,this.addQualifier(new I("c",e)),r&&this.width(r),n&&this.height(n)}height(e){return this._actionModel.dimensions.height=e,this.addQualifier(new I("h",e))}width(e){return this._actionModel.dimensions.width=e,this.addQualifier(new I("w",e))}aspectRatio(e){if(e instanceof pu)return this._actionModel.dimensions.aspectRatio=`${e}`,this.addQualifier(new I("ar",e));if(typeof e=="number"||typeof e=="string")return this._actionModel.dimensions.aspectRatio=ri(e),this.addQualifier(new I("ar",ri(e)));if(e instanceof Ge)return this._actionModel.dimensions.aspectRatio=`${e.qualifierValue}`,this.addFlag(e)}relative(){return this._actionModel.relative=!0,this.addFlag(du())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(fu())}static fromJson(e){const{actionType:r,dimensions:n,relative:o,regionRelative:a}=e,{aspectRatio:u,width:f,height:h}=n,g=Ki[r]||r,_=new this(g,f,h);return u&&_.aspectRatio(u==="ignore_aspect_ratio"?au():u),o&&_.relative(),a&&_.regionRelative(),_}}class uo extends I{constructor(e){super("g",new te(e))}}class is extends uo{constructor(){super("auto")}autoFocus(...e){return this.addValue(e),this}}class ss extends uo{constructor(e){super(e)}fallbackGravity(e){return this.addValue(e.qualifierValue),this}}class as extends uo{constructor(e){super(e)}}function mu(t){return new as(t)}function cs(...t){const e=[...t];return new ss(e)}function us(){return new is}class fn extends te{constructor(e){super(),this.name=e}toString(){return this.name}}function yu(){return new fn("ocr_text")}function vu(t){return t&&`${t}`.split(":")[0]==="auto"}function _u(t){const e=lo(t);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(e)}function lo(t){return`${t}`.replace("g_","")}function bu(t){return{compass:lo(t),gravityType:"direction"}}function wu(t){return lo(t)==="ocr_text"}function Eu(){return{gravityType:"ocr"}}function Su(t){return`${t.qualifierValue}`.split(":")[0]==="auto"}function Cu(t){const r=t.toString().split("_"),n={object:r[0]};return r.length>1&&(r[1]==="avoid"?n.avoid=!0:n.weight=+r[1]),n}function ls(t){let e;const r=t==="auto"?new is:t;return`${t}`.startsWith("auto:")?e=`${t}`.split(":").filter(o=>o!=="auto"):e=r.qualifierValue.values.filter(o=>o!=="auto"),{gravityType:"auto",autoFocus:e.map(Cu)}}function xu(t){const e=`${t}`.split(":").includes("auto"),r=t.qualifierValue.values,o={gravityType:"object",focusOnObjects:(e?r.slice(0,r.length-1):r).map(a=>`${a}`)};if(e){const a=r[r.length-1].values.slice(1),u=us().autoFocus(...a);o.fallbackGravity=ls(u)}return o}function Au(t){const r=t.split(":").map(n=>new fn(n));return new ss(r)}function Ou(t){return _u(t)?bu(t):wu(t)?Eu():vu(t)||Su(t)?ls(t):xu(typeof t=="string"?Au(t):t)}class fo extends te{constructor(e,r){super(),this._weight=r,this.focusOn=e,this.shouldAvoid=!1}static focusOn(e,r){return new fo(e,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(e){return this._weight=e,this}avoid(){return this.shouldAvoid=!0,this}}class fs extends te{constructor(e){super(),this.val=e}toString(){return this.val}}function Tu(t){return t.gravityType==="direction"}function Ru(t){return t.gravityType==="ocr"}function Pu(t){return t.gravityType==="auto"}function $u(t){const{object:e,weight:r,avoid:n}=t,o=new fo(new fn(e));return(r||r===0)&&o.weight(r),n&&o.avoid(),o}function ds(t){const r=(t.autoFocus||[]).map($u);return us().autoFocus(...r)}function ku(t){const e=(t.focusOnObjects||[]).map(n=>new fn(n)),r=cs(...e);if(t.fallbackGravity){const n=ds(t.fallbackGravity);r.fallbackGravity(n)}return r}function ju(t){return Tu(t)?new as(new fs(t.compass)):Ru(t)?cs(yu()):Pu(t)?ds(t):ku(t)}class ho extends gu{gravity(e){this._actionModel.gravity=Ou(e);const r=typeof e=="string"?new I("g",e):e;return this.addQualifier(r)}static fromJson(e){const r=super.fromJson.apply(this,[e]);return e.gravity&&r.gravity(ju(e.gravity)),r}}class Ar extends I{constructor(e){super("b"),e&&this.addValue(e)}}const hs=100,Iu=0;class Mu extends Ar{intensity(e){return this.intensityLevel=e,this}brightness(e){return this.brightnessLevel=e,this}toString(){const e=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",r=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${hs}:${this.brightnessLevel}`:"";return`b_blurred${e}${r}`}}var ps=Mu;class po extends Ar{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...e){return this._palette=e.map(r=>un(r)),this}}class gs extends po{toString(){return`
|
|
26
148
|
b_auto:border
|
|
27
149
|
${this._contrast?"_contrast":""}
|
|
28
150
|
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
29
|
-
`.replace(/\s+/g,"")}}class
|
|
151
|
+
`.replace(/\s+/g,"")}}class ms extends po{gradientColors(e){return this._gradientColors=e,this}gradientDirection(e){return this._gradientDirection=e,this}}class ys extends ms{toString(){return`
|
|
30
152
|
b_auto:border_gradient
|
|
31
153
|
${this._contrast?"_contrast":""}
|
|
32
154
|
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
33
155
|
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
34
156
|
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
35
|
-
`.replace(/\s+/g,"")}}class
|
|
157
|
+
`.replace(/\s+/g,"")}}class vs extends ms{toString(){return`
|
|
36
158
|
b_auto:predominant_gradient
|
|
37
159
|
${this._contrast?"_contrast":""}
|
|
38
160
|
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
39
161
|
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
40
162
|
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
41
|
-
`.replace(/\s+/g,"")}}class
|
|
163
|
+
`.replace(/\s+/g,"")}}class _s extends po{toString(){return`
|
|
42
164
|
b_auto:predominant
|
|
43
165
|
${this._contrast?"_contrast":""}
|
|
44
166
|
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
45
|
-
`.replace(/\s+/g,"")}}class ci extends Jt{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(e){return this._prompt=e,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${this._prompt}`:""}`}}function li(t){return`${t}`.replace("b_","")}function Zo(){return{backgroundType:"auto"}}function es(t){const{intensityLevel:e,brightnessLevel:r}=t,n={backgroundType:"blurred"};return(e||e===0)&&(n.intensity=e),(r||r===0)&&(n.brightness=r),n}function en(t){const e=t._contrast,r=t._palette,n={backgroundType:""};return e&&(n.contrast=!0),r&&(n.palette=r),n}function ts(t){return Object.assign(Object.assign({},en(t)),{backgroundType:"border"})}function fi(t){const e=t._gradientColors,r=`${t._gradientDirection}`,n=en(t);return e&&(n.gradientColors=e),r&&(n.gradientDirection=r),n}function rs(t){return Object.assign(Object.assign({},fi(t)),{backgroundType:"borderGradient"})}function ns(t){return{backgroundType:"color",color:li(t)}}function is(t){return Object.assign(Object.assign({},en(t)),{backgroundType:"predominant"})}function os(t){return Object.assign(Object.assign({},fi(t)),{backgroundType:"predominantGradient"})}function ss(t){return Object.assign({backgroundType:t.getBackgroundType()},t.getPrompt()?{prompt:t.getPrompt()}:{})}function as(t){return li(t)==="auto"?Zo():t instanceof ni?es(t):t instanceof ii?ts(t):t instanceof si?rs(t):t instanceof ui?is(t):t instanceof ai?os(t):t instanceof ci?ss(t):ns(t)}function us(){return new zr("svg")}function tn(){return new zr("auto")}function di(){return new ii}function hi(){return new Jt("auto")}function pi(){return new si}function gi(){return new ai}function vi(){return new ui}function mi(t){return new Jt(hr(t))}function cs(){return new ni}function yi(){return new ci}const _i={auto:hi,border:di,borderGradient:pi,predominantGradient:gi,predominant:vi,color:mi,blurred:cs,generativeFill:yi};function ls(t){const{brightness:e,intensity:r}=t,n=_i.blurred();return n.brightness(e??Ko),n.intensity(r??ri),n}function Sn(t,e){const{gradientColors:r,gradientDirection:n,contrast:s,palette:c}=e;return s&&t.contrast(),c&&t.palette(...c),r&&t.gradientColors(+r),n&&t.gradientDirection(n),t}function Cn(t,e){const{contrast:r,palette:n}=e;return r&&t.contrast(),n&&t.palette(...n),t}function fs(t,e){const{prompt:r}=e;return r&&t.prompt(r),t}function ds(t){const{backgroundType:e}=t;switch(e){case"auto":return hi();case"blurred":return ls(t);case"border":return Cn(di(),t);case"borderGradient":return Sn(pi(),t);case"predominant":return Cn(vi(),t);case"predominantGradient":return Sn(gi(),t);case"generativeFill":return fs(yi(),t);default:return mi(t.color)}}class hs extends Xr{background(e){return this._actionModel.background=as(e),this.addQualifier(e)}offsetX(e){return this._actionModel.x=e,this.addQualifier(new C("x",e))}offsetY(e){return this._actionModel.y=e,this.addQualifier(new C("y",e))}static fromJson(e){const r=super.fromJson.apply(this,[e]);return e.background&&r.background(ds(e.background)),e.x&&r.offsetX(e.x),e.y&&r.offsetY(e.y),e.zoom&&r.zoom(e.zoom),r}}class ps extends Xr{x(e){return this._actionModel.x=e,this.addQualifier(new C("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new C("y",e))}zoom(e){return this._actionModel.zoom=e,this.addQualifier(new C("z",e))}static fromJson(e){const r=super.fromJson.apply(this,[e]);return e.x&&r.x(e.x),e.y&&r.y(e.y),e.zoom&&r.zoom(e.zoom),r}}class gs extends Xr{x(e){return this._actionModel.x=e,this.addQualifier(new C("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new C("y",e))}static fromJson(e){const r=super.fromJson.apply(this,[e]);return e.x&&r.x(e.x),e.y&&r.y(e.y),r}}function vs(t,e){return new ps("crop",t,e)}function ms(t,e){return new gs("fill",t,e)}function ys(t,e){return new hs("pad",t,e)}class _s extends Gn{constructor(e){super("q",e.toString(),"level")}chromaSubSampling(e){this._actionModel.chromaSubSampling=Qn[e];const r=new D([this._actionModel.level,e]);return r.setDelimiter(":"),this.addQualifier(new C("q",r))}quantization(e){this._actionModel.quantization=e;const r=new D([this._actionModel.level,`qmax_${e}`]).setDelimiter(":");return this.addQualifier(new C("q",r))}static fromJson(e){const{level:r,chromaSubSampling:n,quantization:s}=e,c=qn[r]||r,d=new this(c);if(n){const v=ao[n.toUpperCase()];v&&d.chromaSubSampling(+v)}return s&&d.quantization(s),d}}function vr(t){return new Vr("f",t)}function mr(t){return new _s(t)}function bs(){return new ei("north_east")}En(70).color("black"),En(40).color("white"),yo(),bo();var ws=new pr().effect(_o()).delivery(mr("auto")).delivery(vr(us())),Es=new pr().effect(wo()).delivery(mr("auto")).delivery(vr(tn())),Ts=new pr().effect(mo(2e3)).delivery(mr("auto")).delivery(vr(tn())),Os=new pr().resize(ys("iw_div_2").aspectRatio(1).background(_i.auto())).resize(vs(1,1).gravity(Mo(bs()))).resize(ms().height("ih").width("iw")).delivery(mr("auto")).delivery(vr(tn())),An={vectorize:ws,pixelate:Es,blur:Ts,"predominant-color":Os},Rn="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Pn={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},xn="?_a=",Ss=function(){function t(e,r,n,s,c,d,v){var y=this;this.mimeType="video",this.mimeSubTypes=Pn,this.videoElement=e,this.originalVideo=r,this.videoOptions=v,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var m=Ze(r);ar(e,r,s,this.htmlPluginState).then(function(){y.htmlPluginState.pluginEventSubscription.forEach(function(E){E()}),y.setVideoAttributes(c,d),y.handleSourceToVideo(m,n)})}return t.prototype.handleSourceToVideo=function(e,r){var n=this;if(r)this.generateUserSources(e,r);else{var s=["webm","mp4","ogv"];s.forEach(function(c){n.appendSourceTag(Ze(e),c)})}},t.prototype.generateUserSources=function(e,r){var n=this;r.map(function(s){var c=s.type,d=s.codecs,v=s.transcode;return n.appendSourceTag(Ze(e).transcode(v),c,n.buildMimeType(c,d))})},t.prototype.appendSourceTag=function(e,r,n){var s,c=document.createElement("source"),d=(s=this.videoOptions)===null||s===void 0?void 0:s.useFetchFormat;d&&e.format(r);var v=e.toURL(),y=v.split(xn),m=y[1]?"".concat(xn).concat(y[1]):"",E=d?"":".".concat(r);c.src="".concat(y[0]).concat(E).concat(m),c.type=n||"video/".concat(Pn[r]||r),this.videoElement.appendChild(c)},t.prototype.buildMimeType=function(e,r){var n="".concat(this.mimeType,"/").concat(this.mimeSubTypes[e]||e);return r&&(n+="; codecs="+(Array.isArray(r)?r.join(", "):r)),n},t.prototype.setVideoAttributes=function(e,r){var n;if(e===void 0&&(e={}),r==="auto"){var s=Ze(this.originalVideo);e.poster=s.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else r&&(e.poster=(n=r.toURL)===null||n===void 0?void 0:n.call(r));for(var c=0,d=Object.entries(e);c<d.length;c++){var v=d[c],y=v[0],m=v[1];m&&this.videoElement.setAttribute(y,y==="poster"?m:"")}},t.prototype.update=function(e,r,n,s,c){var d=this;if(e!==this.originalVideo){for(var v=this.videoElement.getElementsByTagName("SOURCE");v[0];)v[0].parentNode.removeChild(v[0]);ar(this.videoElement,e,n,this.htmlPluginState).then(function(){d.setVideoAttributes(s,c),d.handleSourceToVideo(e,r),d.videoElement.load()})}},t}(),Cs=typeof Xe=="object"&&Xe&&Xe.Object===Object&&Xe,As=typeof self=="object"&&self&&self.Object===Object&&self;Cs||As||Function("return this")();function rn(){return typeof window<"u"}function Rs(t){return t instanceof HTMLImageElement}function Ps(t){var e={},r=e.rootMargin,n=r===void 0?"0px":r,s=e.threshold,c=s===void 0?.1:s;return xs.bind(null,n,c)}function xs(t,e,r,n,s,c){return t===void 0&&(t="0px"),e===void 0&&(e=.1),rn()?new Promise(function(d){var v=function(){return d({lazyload:!0})},y=$s(r,v,t,e);s.cleanupCallbacks.push(function(){y(),d("canceled")})}):!1}function js(){return window&&"IntersectionObserver"in window}function $s(t,e,r,n){try{if(!js())return e(),function(){};var s=new IntersectionObserver(function(c){c.forEach(function(d){d.isIntersecting&&(s.unobserve(d.target),e())})},{rootMargin:r,threshold:n});return s.observe(t),function(){t&&s.observe(t)}}catch{e()}}function Ms(t){var e={},r=e.mode,n=r===void 0?"vectorize":r;return ks.bind(null,n)}function ks(t,e,r,n,s,c){An[t]||(t="vectorize");var d=An[t].actions,v=Ze(r);if(d.forEach(function(m){v.addAction(m)}),!rn())return r.transformation=v.transformation,!0;if(Rs(e)){v.transformation.actions.forEach(function(m,E){m instanceof _e&&m.getActionTag()==="responsive"&&delete v.transformation.actions[E]});var y=Dr(s,{placeholder:!0});return e.src=v.toURL(y),e.onerror=function(){e.src=Rn},new Promise(function(m){e.onload=function(){m()}}).then(function(){return new Promise(function(m){n.cleanupCallbacks.push(function(){e.src=Rn,m("canceled")});var E=new Image;E.src=r.toURL(y),E.onload=function(){m({placeholder:!0})},E.onerror=function(){m({placeholder:!0})}})})}}function Is(t,e,r){var n=Ze(e);if(t)for(var s=0;s<t.length;s++){var c=t[s](null,n);if(!c)break}return n.toURL(r?{trackedAnalytics:r}:null)}function ur(t){t.cleanupCallbacks.forEach(function(e){e()})}var Ur=function(t,e){return Ur=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},Ur(t,e)};function bi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ur(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Wt=function(){return Wt=Object.assign||function(e){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(e[c]=r[c])}return e},Wt.apply(this,arguments)};function wi(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}var zt={exports:{}},I={};/*
|
|
167
|
+
`.replace(/\s+/g,"")}}class bs extends Ar{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(e){return this._prompt=e,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${this._prompt}`:""}`}}function ws(t){return`${t}`.replace("b_","")}function Du(){return{backgroundType:"auto"}}function Lu(t){const{intensityLevel:e,brightnessLevel:r}=t,n={backgroundType:"blurred"};return(e||e===0)&&(n.intensity=e),(r||r===0)&&(n.brightness=r),n}function go(t){const e=t._contrast,r=t._palette,n={backgroundType:""};return e&&(n.contrast=!0),r&&(n.palette=r),n}function Fu(t){return Object.assign(Object.assign({},go(t)),{backgroundType:"border"})}function Es(t){const e=t._gradientColors,r=`${t._gradientDirection}`,n=go(t);return e&&(n.gradientColors=e),r&&(n.gradientDirection=r),n}function Vu(t){return Object.assign(Object.assign({},Es(t)),{backgroundType:"borderGradient"})}function Nu(t){return{backgroundType:"color",color:ws(t)}}function Uu(t){return Object.assign(Object.assign({},go(t)),{backgroundType:"predominant"})}function Bu(t){return Object.assign(Object.assign({},Es(t)),{backgroundType:"predominantGradient"})}function qu(t){return Object.assign({backgroundType:t.getBackgroundType()},t.getPrompt()?{prompt:t.getPrompt()}:{})}function zu(t){return ws(t)==="auto"?Du():t instanceof ps?Lu(t):t instanceof gs?Fu(t):t instanceof ys?Vu(t):t instanceof _s?Uu(t):t instanceof vs?Bu(t):t instanceof bs?qu(t):Nu(t)}function Gu(){return new co("svg")}function mo(){return new co("auto")}function Ss(){return new gs}function Cs(){return new Ar("auto")}function xs(){return new ys}function As(){return new vs}function Os(){return new _s}function Ts(t){return new Ar(un(t))}function Yu(){return new ps}function Rs(){return new bs}const Ps={auto:Cs,border:Ss,borderGradient:xs,predominantGradient:As,predominant:Os,color:Ts,blurred:Yu,generativeFill:Rs};function Wu(t){const{brightness:e,intensity:r}=t,n=Ps.blurred();return n.brightness(e??Iu),n.intensity(r??hs),n}function ni(t,e){const{gradientColors:r,gradientDirection:n,contrast:o,palette:a}=e;return o&&t.contrast(),a&&t.palette(...a),r&&t.gradientColors(+r),n&&t.gradientDirection(n),t}function oi(t,e){const{contrast:r,palette:n}=e;return r&&t.contrast(),n&&t.palette(...n),t}function Qu(t,e){const{prompt:r}=e;return r&&t.prompt(r),t}function Hu(t){const{backgroundType:e}=t;switch(e){case"auto":return Cs();case"blurred":return Wu(t);case"border":return oi(Ss(),t);case"borderGradient":return ni(xs(),t);case"predominant":return oi(Os(),t);case"predominantGradient":return ni(As(),t);case"generativeFill":return Qu(Rs(),t);default:return Ts(t.color)}}class Ju extends ho{background(e){return this._actionModel.background=zu(e),this.addQualifier(e)}offsetX(e){return this._actionModel.x=e,this.addQualifier(new I("x",e))}offsetY(e){return this._actionModel.y=e,this.addQualifier(new I("y",e))}static fromJson(e){const r=super.fromJson.apply(this,[e]);return e.background&&r.background(Hu(e.background)),e.x&&r.offsetX(e.x),e.y&&r.offsetY(e.y),e.zoom&&r.zoom(e.zoom),r}}class Ku extends ho{x(e){return this._actionModel.x=e,this.addQualifier(new I("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new I("y",e))}zoom(e){return this._actionModel.zoom=e,this.addQualifier(new I("z",e))}static fromJson(e){const r=super.fromJson.apply(this,[e]);return e.x&&r.x(e.x),e.y&&r.y(e.y),e.zoom&&r.zoom(e.zoom),r}}class Xu extends ho{x(e){return this._actionModel.x=e,this.addQualifier(new I("x",e))}y(e){return this._actionModel.y=e,this.addQualifier(new I("y",e))}static fromJson(e){const r=super.fromJson.apply(this,[e]);return e.x&&r.x(e.x),e.y&&r.y(e.y),r}}function Zu(t,e){return new Ku("crop",t,e)}function el(t,e){return new Xu("fill",t,e)}function tl(t,e){return new Ju("pad",t,e)}class rl extends ns{constructor(e){super("q",e.toString(),"level")}chromaSubSampling(e){this._actionModel.chromaSubSampling=es[e];const r=new te([this._actionModel.level,e]);return r.setDelimiter(":"),this.addQualifier(new I("q",r))}quantization(e){this._actionModel.quantization=e;const r=new te([this._actionModel.level,`qmax_${e}`]).setDelimiter(":");return this.addQualifier(new I("q",r))}static fromJson(e){const{level:r,chromaSubSampling:n,quantization:o}=e,a=Zi[r]||r,u=new this(a);if(n){const f=Gc[n.toUpperCase()];f&&u.chromaSubSampling(+f)}return o&&u.quantization(o),u}}function dn(t){return new Wn("f",t)}function hn(t){return new rl(t)}function nl(){return new fs("north_east")}ei(70).color("black"),ei(40).color("white"),tu(),nu();var ol=new ln().effect(ru()).delivery(hn("auto")).delivery(dn(Gu())),il=new ln().effect(ou()).delivery(hn("auto")).delivery(dn(mo())),sl=new ln().effect(eu(2e3)).delivery(hn("auto")).delivery(dn(mo())),al=new ln().resize(tl("iw_div_2").aspectRatio(1).background(Ps.auto())).resize(Zu(1,1).gravity(mu(nl()))).resize(el().height("ih").width("iw")).delivery(hn("auto")).delivery(dn(mo())),ii={vectorize:ol,pixelate:il,blur:sl,"predominant-color":al},si="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ai={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},ci="?_a=",cl=function(){function t(e,r,n,o,a,u,f){var h=this;this.mimeType="video",this.mimeSubTypes=ai,this.videoElement=e,this.originalVideo=r,this.videoOptions=f,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var g=Ct(r);Jr(e,r,o,this.htmlPluginState).then(function(){h.htmlPluginState.pluginEventSubscription.forEach(function(_){_()}),h.setVideoAttributes(a,u),h.handleSourceToVideo(g,n)})}return t.prototype.handleSourceToVideo=function(e,r){var n=this;if(r)this.generateUserSources(e,r);else{var o=["webm","mp4","ogv"];o.forEach(function(a){n.appendSourceTag(Ct(e),a)})}},t.prototype.generateUserSources=function(e,r){var n=this;r.map(function(o){var a=o.type,u=o.codecs,f=o.transcode;return n.appendSourceTag(Ct(e).transcode(f),a,n.buildMimeType(a,u))})},t.prototype.appendSourceTag=function(e,r,n){var o,a=document.createElement("source"),u=(o=this.videoOptions)===null||o===void 0?void 0:o.useFetchFormat;u&&e.format(r);var f=e.toURL(),h=f.split(ci),g=h[1]?"".concat(ci).concat(h[1]):"",_=u?"":".".concat(r);a.src="".concat(h[0]).concat(_).concat(g),a.type=n||"video/".concat(ai[r]||r),this.videoElement.appendChild(a)},t.prototype.buildMimeType=function(e,r){var n="".concat(this.mimeType,"/").concat(this.mimeSubTypes[e]||e);return r&&(n+="; codecs="+(Array.isArray(r)?r.join(", "):r)),n},t.prototype.setVideoAttributes=function(e,r){var n;if(e===void 0&&(e={}),r==="auto"){var o=Ct(this.originalVideo);e.poster=o.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else r&&(e.poster=(n=r.toURL)===null||n===void 0?void 0:n.call(r));for(var a=0,u=Object.entries(e);a<u.length;a++){var f=u[a],h=f[0],g=f[1];g&&this.videoElement.setAttribute(h,h==="poster"?g:"")}},t.prototype.update=function(e,r,n,o,a){var u=this;if(e!==this.originalVideo){for(var f=this.videoElement.getElementsByTagName("SOURCE");f[0];)f[0].parentNode.removeChild(f[0]);Jr(this.videoElement,e,n,this.htmlPluginState).then(function(){u.setVideoAttributes(o,a),u.handleSourceToVideo(e,r),u.videoElement.load()})}},t}(),ul=typeof St=="object"&&St&&St.Object===Object&&St,ll=typeof self=="object"&&self&&self.Object===Object&&self;ul||ll||Function("return this")();function yo(){return typeof window<"u"}function fl(t){return t instanceof HTMLImageElement}function dl(t){var e={},r=e.rootMargin,n=r===void 0?"0px":r,o=e.threshold,a=o===void 0?.1:o;return hl.bind(null,n,a)}function hl(t,e,r,n,o,a){return t===void 0&&(t="0px"),e===void 0&&(e=.1),yo()?new Promise(function(u){var f=function(){return u({lazyload:!0})},h=gl(r,f,t,e);o.cleanupCallbacks.push(function(){h(),u("canceled")})}):!1}function pl(){return window&&"IntersectionObserver"in window}function gl(t,e,r,n){try{if(!pl())return e(),function(){};var o=new IntersectionObserver(function(a){a.forEach(function(u){u.isIntersecting&&(o.unobserve(u.target),e())})},{rootMargin:r,threshold:n});return o.observe(t),function(){t&&o.observe(t)}}catch{e()}}function ml(t){var e={},r=e.mode,n=r===void 0?"vectorize":r;return yl.bind(null,n)}function yl(t,e,r,n,o,a){ii[t]||(t="vectorize");var u=ii[t].actions,f=Ct(r);if(u.forEach(function(g){f.addAction(g)}),!yo())return r.transformation=f.transformation,!0;if(fl(e)){f.transformation.actions.forEach(function(g,_){g instanceof Xe&&g.getActionTag()==="responsive"&&delete f.transformation.actions[_]});var h=Yn(o,{placeholder:!0});return e.src=f.toURL(h),e.onerror=function(){e.src=si},new Promise(function(g){e.onload=function(){g()}}).then(function(){return new Promise(function(g){n.cleanupCallbacks.push(function(){e.src=si,g("canceled")});var _=new Image;_.src=r.toURL(h),_.onload=function(){g({placeholder:!0})},_.onerror=function(){g({placeholder:!0})}})})}}function vl(t,e,r){var n=Ct(e);if(t)for(var o=0;o<t.length;o++){var a=t[o](null,n);if(!a)break}return n.toURL(r?{trackedAnalytics:r}:null)}function Kr(t){t.cleanupCallbacks.forEach(function(e){e()})}var Qn=function(t,e){return Qn=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])},Qn(t,e)};function $s(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Qn(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Sr=function(){return Sr=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Sr.apply(this,arguments)};function ks(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}var Cr={exports:{}},J={};/*
|
|
46
168
|
object-assign
|
|
47
169
|
(c) Sindre Sorhus
|
|
48
170
|
@license MIT
|
|
49
|
-
*/var
|
|
171
|
+
*/var ui=Object.getOwnPropertySymbols,_l=Object.prototype.hasOwnProperty,bl=Object.prototype.propertyIsEnumerable;function wl(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function El(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(a){return e[a]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(a){o[a]=a}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var js=El()?Object.assign:function(t,e){for(var r,n=wl(t),o,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var u in r)_l.call(r,u)&&(n[u]=r[u]);if(ui){o=ui(r);for(var f=0;f<o.length;f++)bl.call(r,o[f])&&(n[o[f]]=r[o[f]])}}return n};/** @license React v16.14.0
|
|
50
172
|
* react.production.min.js
|
|
51
173
|
*
|
|
52
174
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
175
|
*
|
|
54
176
|
* This source code is licensed under the MIT license found in the
|
|
55
177
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var
|
|
178
|
+
*/var vo=js,Ze=typeof Symbol=="function"&&Symbol.for,Or=Ze?Symbol.for("react.element"):60103,Sl=Ze?Symbol.for("react.portal"):60106,Cl=Ze?Symbol.for("react.fragment"):60107,xl=Ze?Symbol.for("react.strict_mode"):60108,Al=Ze?Symbol.for("react.profiler"):60114,Ol=Ze?Symbol.for("react.provider"):60109,Tl=Ze?Symbol.for("react.context"):60110,Rl=Ze?Symbol.for("react.forward_ref"):60112,Pl=Ze?Symbol.for("react.suspense"):60113,$l=Ze?Symbol.for("react.memo"):60115,kl=Ze?Symbol.for("react.lazy"):60116,li=typeof Symbol=="function"&&Symbol.iterator;function Tr(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Is={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ms={};function ir(t,e,r){this.props=t,this.context=e,this.refs=Ms,this.updater=r||Is}ir.prototype.isReactComponent={};ir.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error(Tr(85));this.updater.enqueueSetState(this,t,e,"setState")};ir.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Ds(){}Ds.prototype=ir.prototype;function _o(t,e,r){this.props=t,this.context=e,this.refs=Ms,this.updater=r||Is}var bo=_o.prototype=new Ds;bo.constructor=_o;vo(bo,ir.prototype);bo.isPureReactComponent=!0;var wo={current:null},Ls=Object.prototype.hasOwnProperty,Fs={key:!0,ref:!0,__self:!0,__source:!0};function Vs(t,e,r){var n,o={},a=null,u=null;if(e!=null)for(n in e.ref!==void 0&&(u=e.ref),e.key!==void 0&&(a=""+e.key),e)Ls.call(e,n)&&!Fs.hasOwnProperty(n)&&(o[n]=e[n]);var f=arguments.length-2;if(f===1)o.children=r;else if(1<f){for(var h=Array(f),g=0;g<f;g++)h[g]=arguments[g+2];o.children=h}if(t&&t.defaultProps)for(n in f=t.defaultProps,f)o[n]===void 0&&(o[n]=f[n]);return{$$typeof:Or,type:t,key:a,ref:u,props:o,_owner:wo.current}}function jl(t,e){return{$$typeof:Or,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Eo(t){return typeof t=="object"&&t!==null&&t.$$typeof===Or}function Il(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(r){return e[r]})}var Ns=/\/+/g,Xr=[];function Us(t,e,r,n){if(Xr.length){var o=Xr.pop();return o.result=t,o.keyPrefix=e,o.func=r,o.context=n,o.count=0,o}return{result:t,keyPrefix:e,func:r,context:n,count:0}}function Bs(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>Xr.length&&Xr.push(t)}function Hn(t,e,r,n){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case Or:case Sl:a=!0}}if(a)return r(n,t,e===""?"."+jn(t,0):e),1;if(a=0,e=e===""?".":e+":",Array.isArray(t))for(var u=0;u<t.length;u++){o=t[u];var f=e+jn(o,u);a+=Hn(o,f,r,n)}else if(t===null||typeof t!="object"?f=null:(f=li&&t[li]||t["@@iterator"],f=typeof f=="function"?f:null),typeof f=="function")for(t=f.call(t),u=0;!(o=t.next()).done;)o=o.value,f=e+jn(o,u++),a+=Hn(o,f,r,n);else if(o==="object")throw r=""+t,Error(Tr(31,r==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return a}function Jn(t,e,r){return t==null?0:Hn(t,"",e,r)}function jn(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Il(t.key):e.toString(36)}function Ml(t,e){t.func.call(t.context,e,t.count++)}function Dl(t,e,r){var n=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?Kn(t,n,r,function(a){return a}):t!=null&&(Eo(t)&&(t=jl(t,o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(Ns,"$&/")+"/")+r)),n.push(t))}function Kn(t,e,r,n,o){var a="";r!=null&&(a=(""+r).replace(Ns,"$&/")+"/"),e=Us(e,a,n,o),Jn(t,Dl,e),Bs(e)}var qs={current:null};function vt(){var t=qs.current;if(t===null)throw Error(Tr(321));return t}var Ll={ReactCurrentDispatcher:qs,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:wo,IsSomeRendererActing:{current:!1},assign:vo};J.Children={map:function(t,e,r){if(t==null)return t;var n=[];return Kn(t,n,null,e,r),n},forEach:function(t,e,r){if(t==null)return t;e=Us(null,null,e,r),Jn(t,Ml,e),Bs(e)},count:function(t){return Jn(t,function(){return null},null)},toArray:function(t){var e=[];return Kn(t,e,null,function(r){return r}),e},only:function(t){if(!Eo(t))throw Error(Tr(143));return t}};J.Component=ir;J.Fragment=Cl;J.Profiler=Al;J.PureComponent=_o;J.StrictMode=xl;J.Suspense=Pl;J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ll;J.cloneElement=function(t,e,r){if(t==null)throw Error(Tr(267,t));var n=vo({},t.props),o=t.key,a=t.ref,u=t._owner;if(e!=null){if(e.ref!==void 0&&(a=e.ref,u=wo.current),e.key!==void 0&&(o=""+e.key),t.type&&t.type.defaultProps)var f=t.type.defaultProps;for(h in e)Ls.call(e,h)&&!Fs.hasOwnProperty(h)&&(n[h]=e[h]===void 0&&f!==void 0?f[h]:e[h])}var h=arguments.length-2;if(h===1)n.children=r;else if(1<h){f=Array(h);for(var g=0;g<h;g++)f[g]=arguments[g+2];n.children=f}return{$$typeof:Or,type:t.type,key:o,ref:a,props:n,_owner:u}};J.createContext=function(t,e){return e===void 0&&(e=null),t={$$typeof:Tl,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:Ol,_context:t},t.Consumer=t};J.createElement=Vs;J.createFactory=function(t){var e=Vs.bind(null,t);return e.type=t,e};J.createRef=function(){return{current:null}};J.forwardRef=function(t){return{$$typeof:Rl,render:t}};J.isValidElement=Eo;J.lazy=function(t){return{$$typeof:kl,_ctor:t,_status:-1,_result:null}};J.memo=function(t,e){return{$$typeof:$l,type:t,compare:e===void 0?null:e}};J.useCallback=function(t,e){return vt().useCallback(t,e)};J.useContext=function(t,e){return vt().useContext(t,e)};J.useDebugValue=function(){};J.useEffect=function(t,e){return vt().useEffect(t,e)};J.useImperativeHandle=function(t,e,r){return vt().useImperativeHandle(t,e,r)};J.useLayoutEffect=function(t,e){return vt().useLayoutEffect(t,e)};J.useMemo=function(t,e){return vt().useMemo(t,e)};J.useReducer=function(t,e,r){return vt().useReducer(t,e,r)};J.useRef=function(t){return vt().useRef(t)};J.useState=function(t){return vt().useState(t)};J.version="16.14.0";var H={},Fl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Vl=Fl,Nl=Function.call.bind(Object.prototype.hasOwnProperty),Xn=function(){};if(process.env.NODE_ENV!=="production"){var Ul=Vl,Zn={},Bl=Nl;Xn=function(t){var e="Warning: "+t;typeof console<"u"&&console.error(e);try{throw new Error(e)}catch{}}}function zs(t,e,r,n,o){if(process.env.NODE_ENV!=="production"){for(var a in t)if(Bl(t,a)){var u;try{if(typeof t[a]!="function"){var f=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=t[a](e,a,n,r,null,Ul)}catch(g){u=g}if(u&&!(u instanceof Error)&&Xn((n||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in Zn)){Zn[u.message]=!0;var h=o?o():"";Xn("Failed "+r+" type: "+u.message+(h??""))}}}}zs.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Zn={})};var ql=zs;/** @license React v16.14.0
|
|
57
179
|
* react.development.js
|
|
58
180
|
*
|
|
59
181
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
60
182
|
*
|
|
61
183
|
* This source code is licensed under the MIT license found in the
|
|
62
184
|
* LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/process.env.NODE_ENV!=="production"&&function(){var t=
|
|
64
|
-
in `+(i||"Unknown")+
|
|
65
|
-
in`)===0;if(!g){var b=Ge.ReactDebugCurrentFrame,x=b.getStackAddendum();x!==""&&(u+="%s",f=f.concat([x]))}var O=f.map(function(N){return""+N});O.unshift("Warning: "+u),Function.prototype.apply.call(console[i],console,O);try{var S=0,U="Warning: "+u.replace(/%s/g,function(){return f[S++]});throw new Error(U)}catch{}}}var ut={};function xe(i,u){{var f=i.constructor,g=f&&(f.displayName||f.name)||"ReactClass",b=g+"."+u;if(ut[b])return;P("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.",u,g),ut[b]=!0}}var We={isMounted:function(i){return!1},enqueueForceUpdate:function(i,u,f){xe(i,"forceUpdate")},enqueueReplaceState:function(i,u,f,g){xe(i,"replaceState")},enqueueSetState:function(i,u,f,g){xe(i,"setState")}},Oe={};Object.freeze(Oe);function re(i,u,f){this.props=i,this.context=u,this.refs=Oe,this.updater=f||We}re.prototype.isReactComponent={},re.prototype.setState=function(i,u){if(!(typeof i=="object"||typeof i=="function"||i==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,i,u,"setState")},re.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};{var Se={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)."]},_t=function(i,u){Object.defineProperty(re.prototype,i,{get:function(){Pe("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})};for(var ze in Se)Se.hasOwnProperty(ze)&&_t(ze,Se[ze])}function bt(){}bt.prototype=re.prototype;function He(i,u,f){this.props=i,this.context=u,this.refs=Oe,this.updater=f||We}var me=He.prototype=new bt;me.constructor=He,t(me,re.prototype),me.isPureReactComponent=!0;function Ce(){var i={current:null};return Object.seal(i),i}var Ae=Object.prototype.hasOwnProperty,ct={key:!0,ref:!0,__self:!0,__source:!0},je,$e,Me;Me={};function ke(i){if(Ae.call(i,"ref")){var u=Object.getOwnPropertyDescriptor(i,"ref").get;if(u&&u.isReactWarning)return!1}return i.ref!==void 0}function lt(i){if(Ae.call(i,"key")){var u=Object.getOwnPropertyDescriptor(i,"key").get;if(u&&u.isReactWarning)return!1}return i.key!==void 0}function ae(i,u){var f=function(){je||(je=!0,P("%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)",u))};f.isReactWarning=!0,Object.defineProperty(i,"key",{get:f,configurable:!0})}function Ie(i,u){var f=function(){$e||($e=!0,P("%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)",u))};f.isReactWarning=!0,Object.defineProperty(i,"ref",{get:f,configurable:!0})}function wt(i){if(typeof i.ref=="string"&&z.current&&i.__self&&z.current.stateNode!==i.__self){var u=W(z.current.type);Me[u]||(P('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',W(z.current.type),i.ref),Me[u]=!0)}}var ue=function(i,u,f,g,b,x,O){var S={$$typeof:s,type:i,key:u,ref:f,props:O,_owner:x};return S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(S,"_self",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.defineProperty(S,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S};function Et(i,u,f){var g,b={},x=null,O=null,S=null,U=null;if(u!=null){ke(u)&&(O=u.ref,wt(u)),lt(u)&&(x=""+u.key),S=u.__self===void 0?null:u.__self,U=u.__source===void 0?null:u.__source;for(g in u)Ae.call(u,g)&&!ct.hasOwnProperty(g)&&(b[g]=u[g])}var N=arguments.length-2;if(N===1)b.children=f;else if(N>1){for(var Z=Array(N),H=0;H<N;H++)Z[H]=arguments[H+2];Object.freeze&&Object.freeze(Z),b.children=Z}if(i&&i.defaultProps){var Ue=i.defaultProps;for(g in Ue)b[g]===void 0&&(b[g]=Ue[g])}if(x||O){var de=typeof i=="function"?i.displayName||i.name||"Unknown":i;x&&ae(b,de),O&&Ie(b,de)}return ue(i,x,O,S,U,z.current,b)}function ft(i,u){var f=ue(i.type,u,i.ref,i._self,i._source,i._owner,i.props);return f}function Tt(i,u,f){if(i==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+i+".");var g,b=t({},i.props),x=i.key,O=i.ref,S=i._self,U=i._source,N=i._owner;if(u!=null){ke(u)&&(O=u.ref,N=z.current),lt(u)&&(x=""+u.key);var Z;i.type&&i.type.defaultProps&&(Z=i.type.defaultProps);for(g in u)Ae.call(u,g)&&!ct.hasOwnProperty(g)&&(u[g]===void 0&&Z!==void 0?b[g]=Z[g]:b[g]=u[g])}var H=arguments.length-2;if(H===1)b.children=f;else if(H>1){for(var Ue=Array(H),de=0;de<H;de++)Ue[de]=arguments[de+2];b.children=Ue}return ue(i.type,x,O,S,U,N,b)}function ce(i){return typeof i=="object"&&i!==null&&i.$$typeof===s}var Ot=".",$t=":";function St(i){var u=/[=:]/g,f={"=":"=0",":":"=2"},g=(""+i).replace(u,function(b){return f[b]});return"$"+g}var Ct=!1,Mt=/\/+/g;function Je(i){return(""+i).replace(Mt,"$&/")}var Le=10,le=[];function Fe(i,u,f,g){if(le.length){var b=le.pop();return b.result=i,b.keyPrefix=u,b.func=f,b.context=g,b.count=0,b}else return{result:i,keyPrefix:u,func:f,context:g,count:0}}function ne(i){i.result=null,i.keyPrefix=null,i.func=null,i.context=null,i.count=0,le.length<Le&&le.push(i)}function ie(i,u,f,g){var b=typeof i;(b==="undefined"||b==="boolean")&&(i=null);var x=!1;if(i===null)x=!0;else switch(b){case"string":case"number":x=!0;break;case"object":switch(i.$$typeof){case s:case c:x=!0}}if(x)return f(g,i,u===""?Ot+Ke(i,0):u),1;var O,S,U=0,N=u===""?Ot:u+$t;if(Array.isArray(i))for(var Z=0;Z<i.length;Z++)O=i[Z],S=N+Ke(O,Z),U+=ie(O,S,f,g);else{var H=nt(i);if(typeof H=="function"){H===i.entries&&(Ct||Pe("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."),Ct=!0);for(var Ue=H.call(i),de,Pr=0;!(de=Ue.next()).done;)O=de.value,S=N+Ke(O,Pr++),U+=ie(O,S,f,g)}else if(b==="object"){var ir="";ir=" If you meant to render a collection of children, use an array instead."+ge.getStackAddendum();var Qt=""+i;throw Error("Objects are not valid as a React child (found: "+(Qt==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":Qt)+")."+ir)}}return U}function De(i,u,f){return i==null?0:ie(i,"",u,f)}function Ke(i,u){return typeof i=="object"&&i!==null&&i.key!=null?St(i.key):u.toString(36)}function kt(i,u,f){var g=i.func,b=i.context;g.call(b,u,i.count++)}function At(i,u,f){if(i==null)return i;var g=Fe(null,null,u,f);De(i,kt,g),ne(g)}function It(i,u,f){var g=i.result,b=i.keyPrefix,x=i.func,O=i.context,S=x.call(O,u,i.count++);Array.isArray(S)?Ve(S,g,f,function(U){return U}):S!=null&&(ce(S)&&(S=ft(S,b+(S.key&&(!u||u.key!==S.key)?Je(S.key)+"/":"")+f)),g.push(S))}function Ve(i,u,f,g,b){var x="";f!=null&&(x=Je(f)+"/");var O=Fe(u,x,g,b);De(i,It,O),ne(O)}function dt(i,u,f){if(i==null)return i;var g=[];return Ve(i,g,null,u,f),g}function ye(i){return De(i,function(){return null},null)}function Lt(i){var u=[];return Ve(i,u,null,function(f){return f}),u}function Rt(i){if(!ce(i))throw Error("React.Children.only expected to receive a single React element child.");return i}function Ft(i,u){u===void 0?u=null:u!==null&&typeof u!="function"&&P("createContext: Expected the optional second argument to be a function. Instead received: %s",u);var f={$$typeof:E,_calculateChangedBits:u,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null};f.Provider={$$typeof:m,_context:f};var g=!1,b=!1;{var x={$$typeof:E,_context:f,_calculateChangedBits:f._calculateChangedBits};Object.defineProperties(x,{Provider:{get:function(){return b||(b=!0,P("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),f.Provider},set:function(O){f.Provider=O}},_currentValue:{get:function(){return f._currentValue},set:function(O){f._currentValue=O}},_currentValue2:{get:function(){return f._currentValue2},set:function(O){f._currentValue2=O}},_threadCount:{get:function(){return f._threadCount},set:function(O){f._threadCount=O}},Consumer:{get:function(){return g||(g=!0,P("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),f.Consumer}}}),f.Consumer=x}return f._currentRenderer=null,f._currentRenderer2=null,f}function Dt(i){var u={$$typeof:Qe,_ctor:i,_status:-1,_result:null};{var f,g;Object.defineProperties(u,{defaultProps:{configurable:!0,get:function(){return f},set:function(b){P("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=b,Object.defineProperty(u,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return g},set:function(b){P("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."),g=b,Object.defineProperty(u,"propTypes",{enumerable:!0})}}})}return u}function Vt(i){return i!=null&&i.$$typeof===we?P("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof i!="function"?P("forwardRef requires a render function but was given %s.",i===null?"null":typeof i):i.length!==0&&i.length!==2&&P("forwardRef render functions accept exactly two parameters: props and ref. %s",i.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),i!=null&&(i.defaultProps!=null||i.propTypes!=null)&&P("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:Y,render:i}}function X(i){return typeof i=="string"||typeof i=="function"||i===d||i===Q||i===y||i===v||i===pe||i===Re||typeof i=="object"&&i!==null&&(i.$$typeof===Qe||i.$$typeof===we||i.$$typeof===m||i.$$typeof===E||i.$$typeof===Y||i.$$typeof===q||i.$$typeof===yt||i.$$typeof===tt||i.$$typeof===J)}function a(i,u){return X(i)||P("memo: The first argument must be a component. Instead received: %s",i===null?"null":typeof i),{$$typeof:we,type:i,compare:u===void 0?null:u}}function p(){var i=it.current;if(i===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:
|
|
185
|
+
*/process.env.NODE_ENV!=="production"&&function(){var t=js,e=ql,r="16.14.0",n=typeof Symbol=="function"&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,u=n?Symbol.for("react.fragment"):60107,f=n?Symbol.for("react.strict_mode"):60108,h=n?Symbol.for("react.profiler"):60114,g=n?Symbol.for("react.provider"):60109,_=n?Symbol.for("react.context"):60110,S=n?Symbol.for("react.concurrent_mode"):60111,A=n?Symbol.for("react.forward_ref"):60112,$=n?Symbol.for("react.suspense"):60113,B=n?Symbol.for("react.suspense_list"):60120,q=n?Symbol.for("react.memo"):60115,Z=n?Symbol.for("react.lazy"):60116,F=n?Symbol.for("react.block"):60121,R=n?Symbol.for("react.fundamental"):60117,z=n?Symbol.for("react.responder"):60118,G=n?Symbol.for("react.scope"):60119,W=typeof Symbol=="function"&&Symbol.iterator,k="@@iterator";function O(i){if(i===null||typeof i!="object")return null;var l=W&&i[W]||i[k];return typeof l=="function"?l:null}var be={current:null},Ce={suspense:null},pe={current:null},et=/^(.*)[\\\/]/;function ot(i,l,p){var v="";if(l){var w=l.fileName,N=w.replace(et,"");if(/^index\./.test(N)){var x=w.match(et);if(x){var T=x[1];if(T){var se=T.replace(et,"");N=se+"/"+N}}}v=" (at "+N+":"+l.lineNumber+")"}else p&&(v=" (created by "+p+")");return`
|
|
186
|
+
in `+(i||"Unknown")+v}var ge=1;function xe(i){return i._status===ge?i._result:null}function Le(i,l,p){var v=l.displayName||l.name||"";return i.displayName||(v!==""?p+"("+v+")":p)}function de(i){if(i==null)return null;if(typeof i.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case u:return"Fragment";case a:return"Portal";case h:return"Profiler";case f:return"StrictMode";case $:return"Suspense";case B:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case _:return"Context.Consumer";case g:return"Context.Provider";case A:return Le(i,i.render,"ForwardRef");case q:return de(i.type);case F:return de(i.render);case Z:{var l=i,p=xe(l);if(p)return de(p);break}}return null}var we={},ke=null;function ne(i){ke=i}we.getCurrentStack=null,we.getStackAddendum=function(){var i="";if(ke){var l=de(ke.type),p=ke._owner;i+=ot(l,ke._source,p&&de(p.type))}var v=we.getCurrentStack;return v&&(i+=v()||""),i};var V={current:!1},Ae={ReactCurrentDispatcher:be,ReactCurrentBatchConfig:Ce,ReactCurrentOwner:pe,IsSomeRendererActing:V,assign:t};t(Ae,{ReactDebugCurrentFrame:we,ReactComponentTreeHook:{}});function re(i){{for(var l=arguments.length,p=new Array(l>1?l-1:0),v=1;v<l;v++)p[v-1]=arguments[v];We("warn",i,p)}}function j(i){{for(var l=arguments.length,p=new Array(l>1?l-1:0),v=1;v<l;v++)p[v-1]=arguments[v];We("error",i,p)}}function We(i,l,p){{var v=p.length>0&&typeof p[p.length-1]=="string"&&p[p.length-1].indexOf(`
|
|
187
|
+
in`)===0;if(!v){var w=Ae.ReactDebugCurrentFrame,N=w.getStackAddendum();N!==""&&(l+="%s",p=p.concat([N]))}var x=p.map(function(ae){return""+ae});x.unshift("Warning: "+l),Function.prototype.apply.call(console[i],console,x);try{var T=0,se="Warning: "+l.replace(/%s/g,function(){return p[T++]});throw new Error(se)}catch{}}}var Fe={};function Ee(i,l){{var p=i.constructor,v=p&&(p.displayName||p.name)||"ReactClass",w=v+"."+l;if(Fe[w])return;j("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.",l,v),Fe[w]=!0}}var je={isMounted:function(i){return!1},enqueueForceUpdate:function(i,l,p){Ee(i,"forceUpdate")},enqueueReplaceState:function(i,l,p,v){Ee(i,"replaceState")},enqueueSetState:function(i,l,p,v){Ee(i,"setState")}},me={};Object.freeze(me);function oe(i,l,p){this.props=i,this.context=l,this.refs=me,this.updater=p||je}oe.prototype.isReactComponent={},oe.prototype.setState=function(i,l){if(!(typeof i=="object"||typeof i=="function"||i==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,i,l,"setState")},oe.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};{var Oe={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)."]},Qe=function(i,l){Object.defineProperty(oe.prototype,i,{get:function(){re("%s(...) is deprecated in plain JavaScript React classes. %s",l[0],l[1])}})};for(var ye in Oe)Oe.hasOwnProperty(ye)&&Qe(ye,Oe[ye])}function Ut(){}Ut.prototype=oe.prototype;function _t(i,l,p){this.props=i,this.context=l,this.refs=me,this.updater=p||je}var He=_t.prototype=new Ut;He.constructor=_t,t(He,oe.prototype),He.isPureReactComponent=!0;function tt(){var i={current:null};return Object.seal(i),i}var rt=Object.prototype.hasOwnProperty,At={key:!0,ref:!0,__self:!0,__source:!0},it,st,at;at={};function ct(i){if(rt.call(i,"ref")){var l=Object.getOwnPropertyDescriptor(i,"ref").get;if(l&&l.isReactWarning)return!1}return i.ref!==void 0}function Ot(i){if(rt.call(i,"key")){var l=Object.getOwnPropertyDescriptor(i,"key").get;if(l&&l.isReactWarning)return!1}return i.key!==void 0}function Ve(i,l){var p=function(){it||(it=!0,j("%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)",l))};p.isReactWarning=!0,Object.defineProperty(i,"key",{get:p,configurable:!0})}function ut(i,l){var p=function(){st||(st=!0,j("%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)",l))};p.isReactWarning=!0,Object.defineProperty(i,"ref",{get:p,configurable:!0})}function Bt(i){if(typeof i.ref=="string"&&pe.current&&i.__self&&pe.current.stateNode!==i.__self){var l=de(pe.current.type);at[l]||(j('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',de(pe.current.type),i.ref),at[l]=!0)}}var Ne=function(i,l,p,v,w,N,x){var T={$$typeof:o,type:i,key:l,ref:p,props:x,_owner:N};return T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(T,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(T,"_source",{configurable:!1,enumerable:!1,writable:!1,value:w}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T};function qt(i,l,p){var v,w={},N=null,x=null,T=null,se=null;if(l!=null){ct(l)&&(x=l.ref,Bt(l)),Ot(l)&&(N=""+l.key),T=l.__self===void 0?null:l.__self,se=l.__source===void 0?null:l.__source;for(v in l)rt.call(l,v)&&!At.hasOwnProperty(v)&&(w[v]=l[v])}var ae=arguments.length-2;if(ae===1)w.children=p;else if(ae>1){for(var Re=Array(ae),Se=0;Se<ae;Se++)Re[Se]=arguments[Se+2];Object.freeze&&Object.freeze(Re),w.children=Re}if(i&&i.defaultProps){var pt=i.defaultProps;for(v in pt)w[v]===void 0&&(w[v]=pt[v])}if(N||x){var ze=typeof i=="function"?i.displayName||i.name||"Unknown":i;N&&Ve(w,ze),x&&ut(w,ze)}return Ne(i,N,x,T,se,pe.current,w)}function Tt(i,l){var p=Ne(i.type,l,i.ref,i._self,i._source,i._owner,i.props);return p}function zt(i,l,p){if(i==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+i+".");var v,w=t({},i.props),N=i.key,x=i.ref,T=i._self,se=i._source,ae=i._owner;if(l!=null){ct(l)&&(x=l.ref,ae=pe.current),Ot(l)&&(N=""+l.key);var Re;i.type&&i.type.defaultProps&&(Re=i.type.defaultProps);for(v in l)rt.call(l,v)&&!At.hasOwnProperty(v)&&(l[v]===void 0&&Re!==void 0?w[v]=Re[v]:w[v]=l[v])}var Se=arguments.length-2;if(Se===1)w.children=p;else if(Se>1){for(var pt=Array(Se),ze=0;ze<Se;ze++)pt[ze]=arguments[ze+2];w.children=pt}return Ne(i.type,N,x,T,se,ae,w)}function Ue(i){return typeof i=="object"&&i!==null&&i.$$typeof===o}var Gt=".",sr=":";function Yt(i){var l=/[=:]/g,p={"=":"=0",":":"=2"},v=(""+i).replace(l,function(w){return p[w]});return"$"+v}var Wt=!1,ar=/\/+/g;function bt(i){return(""+i).replace(ar,"$&/")}var lt=10,Be=[];function ft(i,l,p,v){if(Be.length){var w=Be.pop();return w.result=i,w.keyPrefix=l,w.func=p,w.context=v,w.count=0,w}else return{result:i,keyPrefix:l,func:p,context:v,count:0}}function Ie(i){i.result=null,i.keyPrefix=null,i.func=null,i.context=null,i.count=0,Be.length<lt&&Be.push(i)}function Me(i,l,p,v){var w=typeof i;(w==="undefined"||w==="boolean")&&(i=null);var N=!1;if(i===null)N=!0;else switch(w){case"string":case"number":N=!0;break;case"object":switch(i.$$typeof){case o:case a:N=!0}}if(N)return p(v,i,l===""?Gt+wt(i,0):l),1;var x,T,se=0,ae=l===""?Gt:l+sr;if(Array.isArray(i))for(var Re=0;Re<i.length;Re++)x=i[Re],T=ae+wt(x,Re),se+=Me(x,T,p,v);else{var Se=O(i);if(typeof Se=="function"){Se===i.entries&&(Wt||re("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 pt=Se.call(i),ze,xn=0;!(ze=pt.next()).done;)x=ze.value,T=ae+wt(x,xn++),se+=Me(x,T,p,v)}else if(w==="object"){var Ir="";Ir=" If you meant to render a collection of children, use an array instead."+we.getStackAddendum();var yr=""+i;throw Error("Objects are not valid as a React child (found: "+(yr==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":yr)+")."+Ir)}}return se}function dt(i,l,p){return i==null?0:Me(i,"",l,p)}function wt(i,l){return typeof i=="object"&&i!==null&&i.key!=null?Yt(i.key):l.toString(36)}function cr(i,l,p){var v=i.func,w=i.context;v.call(w,l,i.count++)}function Qt(i,l,p){if(i==null)return i;var v=ft(null,null,l,p);dt(i,cr,v),Ie(v)}function ur(i,l,p){var v=i.result,w=i.keyPrefix,N=i.func,x=i.context,T=N.call(x,l,i.count++);Array.isArray(T)?ht(T,v,p,function(se){return se}):T!=null&&(Ue(T)&&(T=Tt(T,w+(T.key&&(!l||l.key!==T.key)?bt(T.key)+"/":"")+p)),v.push(T))}function ht(i,l,p,v,w){var N="";p!=null&&(N=bt(p)+"/");var x=ft(l,N,v,w);dt(i,ur,x),Ie(x)}function Rt(i,l,p){if(i==null)return i;var v=[];return ht(i,v,null,l,p),v}function Je(i){return dt(i,function(){return null},null)}function lr(i){var l=[];return ht(i,l,null,function(p){return p}),l}function Ht(i){if(!Ue(i))throw Error("React.Children.only expected to receive a single React element child.");return i}function fr(i,l){l===void 0?l=null:l!==null&&typeof l!="function"&&j("createContext: Expected the optional second argument to be a function. Instead received: %s",l);var p={$$typeof:_,_calculateChangedBits:l,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null};p.Provider={$$typeof:g,_context:p};var v=!1,w=!1;{var N={$$typeof:_,_context:p,_calculateChangedBits:p._calculateChangedBits};Object.defineProperties(N,{Provider:{get:function(){return w||(w=!0,j("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),p.Provider},set:function(x){p.Provider=x}},_currentValue:{get:function(){return p._currentValue},set:function(x){p._currentValue=x}},_currentValue2:{get:function(){return p._currentValue2},set:function(x){p._currentValue2=x}},_threadCount:{get:function(){return p._threadCount},set:function(x){p._threadCount=x}},Consumer:{get:function(){return v||(v=!0,j("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),p.Consumer}}}),p.Consumer=N}return p._currentRenderer=null,p._currentRenderer2=null,p}function dr(i){var l={$$typeof:Z,_ctor:i,_status:-1,_result:null};{var p,v;Object.defineProperties(l,{defaultProps:{configurable:!0,get:function(){return p},set:function(w){j("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."),p=w,Object.defineProperty(l,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return v},set:function(w){j("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."),v=w,Object.defineProperty(l,"propTypes",{enumerable:!0})}}})}return l}function hr(i){return i!=null&&i.$$typeof===q?j("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof i!="function"?j("forwardRef requires a render function but was given %s.",i===null?"null":typeof i):i.length!==0&&i.length!==2&&j("forwardRef render functions accept exactly two parameters: props and ref. %s",i.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),i!=null&&(i.defaultProps!=null||i.propTypes!=null)&&j("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:A,render:i}}function Te(i){return typeof i=="string"||typeof i=="function"||i===u||i===S||i===h||i===f||i===$||i===B||typeof i=="object"&&i!==null&&(i.$$typeof===Z||i.$$typeof===q||i.$$typeof===g||i.$$typeof===_||i.$$typeof===A||i.$$typeof===R||i.$$typeof===z||i.$$typeof===G||i.$$typeof===F)}function c(i,l){return Te(i)||j("memo: The first argument must be a component. Instead received: %s",i===null?"null":typeof i),{$$typeof:q,type:i,compare:l===void 0?null:l}}function y(){var i=be.current;if(i===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:
|
|
66
188
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
67
189
|
2. You might be breaking the Rules of Hooks
|
|
68
190
|
3. You might have more than one copy of React in the same app
|
|
69
|
-
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return i}function
|
|
191
|
+
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return i}function b(i,l){var p=y();if(l!==void 0&&j("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",l,typeof l=="number"&&Array.isArray(arguments[2])?`
|
|
70
192
|
|
|
71
|
-
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),i._context!==void 0){var
|
|
193
|
+
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),i._context!==void 0){var v=i._context;v.Consumer===i?j("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?"):v.Provider===i&&j("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return p.useContext(i,l)}function C(i){var l=y();return l.useState(i)}function Y(i,l,p){var v=y();return v.useReducer(i,l,p)}function U(i){var l=y();return l.useRef(i)}function L(i,l){var p=y();return p.useEffect(i,l)}function M(i,l){var p=y();return p.useLayoutEffect(i,l)}function le(i,l){var p=y();return p.useCallback(i,l)}function K(i,l){var p=y();return p.useMemo(i,l)}function ee(i,l,p){var v=y();return v.useImperativeHandle(i,l,p)}function ie(i,l){{var p=y();return p.useDebugValue(i,l)}}var qe;qe=!1;function Pt(){if(pe.current){var i=de(pe.current.type);if(i)return`
|
|
72
194
|
|
|
73
|
-
Check the render method of \``+i+"`."}return""}function
|
|
195
|
+
Check the render method of \``+i+"`."}return""}function De(i){if(i!==void 0){var l=i.fileName.replace(/^.*[\\\/]/,""),p=i.lineNumber;return`
|
|
74
196
|
|
|
75
|
-
Check your code at `+
|
|
197
|
+
Check your code at `+l+":"+p+"."}return""}function mn(i){return i!=null?De(i.__source):""}var Rr={};function yn(i){var l=Pt();if(!l){var p=typeof i=="string"?i:i.displayName||i.name;p&&(l=`
|
|
76
198
|
|
|
77
|
-
Check the top-level render call using <`+f+">.")}return u}function Ut(i,u){if(!(!i._store||i._store.validated||i.key!=null)){i._store.validated=!0;var f=wr(u);if(!Zt[f]){Zt[f]=!0;var g="";i&&i._owner&&i._owner!==z.current&&(g=" It was passed a child from "+W(i._owner.type)+"."),ve(i),P('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',f,g),ve(null)}}}function pt(i,u){if(typeof i=="object"){if(Array.isArray(i))for(var f=0;f<i.length;f++){var g=i[f];ce(g)&&Ut(g,u)}else if(ce(i))i._store&&(i._store.validated=!0);else if(i){var b=nt(i);if(typeof b=="function"&&b!==i.entries)for(var x=b.call(i),O;!(O=x.next()).done;)ce(O.value)&&Ut(O.value,u)}}}function er(i){{var u=i.type;if(u==null||typeof u=="string")return;var f=W(u),g;if(typeof u=="function")g=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===Y||u.$$typeof===we))g=u.propTypes;else return;g?(ve(i),e(g,i.props,"prop",f,ge.getStackAddendum),ve(null)):u.PropTypes!==void 0&&!fe&&(fe=!0,P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")),typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(i){{ve(i);for(var u=Object.keys(i.props),f=0;f<u.length;f++){var g=u[f];if(g!=="children"&&g!=="key"){P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",g);break}}i.ref!==null&&P("Invalid attribute `ref` supplied to `React.Fragment`."),ve(null)}}function tr(i,u,f){var g=X(i);if(!g){var b="";(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(b+=" 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 x=br(u);x?b+=x:b+=ht();var O;i===null?O="null":Array.isArray(i)?O="array":i!==void 0&&i.$$typeof===s?(O="<"+(W(i.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):O=typeof i,P("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,b)}var S=Et.apply(this,arguments);if(S==null)return S;if(g)for(var U=2;U<arguments.length;U++)pt(arguments[U],i);return i===d?Nt(S):er(S),S}var rr=!1;function Er(i){var u=tr.bind(null,i);return u.type=i,rr||(rr=!0,Pe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(u,"type",{enumerable:!1,get:function(){return Pe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:i}),i}}),u}function Tr(i,u,f){for(var g=Tt.apply(this,arguments),b=2;b<arguments.length;b++)pt(arguments[b],g.type);return er(g),g}try{var nr=Object.freeze({}),Or=new Map([[nr,null]]),qt=new Set([nr]);Or.set(0,0),qt.add(0)}catch{}var Sr=tr,Cr=Tr,Ar=Er,Rr={map:dt,forEach:At,count:ye,toArray:Lt,only:Rt};k.Children=Rr,k.Component=re,k.Fragment=d,k.Profiler=y,k.PureComponent=He,k.StrictMode=v,k.Suspense=pe,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ge,k.cloneElement=Cr,k.createContext=Ft,k.createElement=Sr,k.createFactory=Ar,k.createRef=Ce,k.forwardRef=Vt,k.isValidElement=ce,k.lazy=Dt,k.memo=a,k.useCallback=B,k.useContext=_,k.useDebugValue=V,k.useEffect=R,k.useImperativeHandle=F,k.useLayoutEffect=A,k.useMemo=L,k.useReducer=$,k.useRef=j,k.useState=T,k.version=r}();process.env.NODE_ENV==="production"?zt.exports=I:zt.exports=k;var xt=zt.exports,kr={sdkSemver:"1.13.0",techVersion:xt.version,sdkCode:"J"},aa=function(t){bi(e,t);function e(r){var n=t.call(this,r)||this;return n.imageRef=xt.createRef(),n}return e.prototype.componentDidMount=function(){this.htmlLayerInstance=new zi(this.imageRef.current,this.props.cldImg,this.props.plugins,kr)},e.prototype.componentDidUpdate=function(){ur(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,kr)},e.prototype.componentWillUnmount=function(){ur(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},e.prototype.render=function(){var r=this.props;r.cldImg,r.plugins;var n=wi(r,["cldImg","plugins"]);if(rn())return xt.createElement("img",Wt({suppressHydrationWarning:!0},n,{ref:this.imageRef}));var s=Is(this.props.plugins,this.props.cldImg,kr);return xt.createElement("img",Wt({},n,{src:s}))},e}(xt.Component),ua=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(t){bi(e,t);function e(r){var n=t.call(this,r)||this;return n.videoRef=zt.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}return e.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new Ss(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},e.prototype.componentDidUpdate=function(){ur(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},e.prototype.componentWillUnmount=function(){ur(this.htmlVideoLayerInstance.htmlPluginState)},e.prototype.getVideoAttributes=function(){var r=this,n={};return ua.forEach(function(s){s in r.props&&(n[s]=r.props[s])}),n},e.prototype.attachRef=function(r){this.videoRef.current=r;var n=this.props.innerRef;n&&(n instanceof Function?n(r):n.current=r)},e.prototype.render=function(){var r=this.props;r.cldVid,r.cldPoster,r.plugins,r.sources,r.innerRef,r.useFetchFormat;var n=wi(r,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return xt.createElement("video",Wt({},n,{ref:this.attachRef}))},e})(zt.exports.Component);function ca(t){return!(typeof t!="object"||t instanceof Array)}class la{filterOutNonSupportedKeys(e,r){const n=Object.create({});return ca(e)?(Object.keys(e).forEach(s=>{r.indexOf(s)>=0?n[s]=e[s]:console.warn("Warning - unsupported key provided to configuration: ",s)}),n):Object.create({})}}const Mn=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class cn extends la{constructor(e){super();const r=this.filterOutNonSupportedKeys(e,Mn);Object.assign(this,{secure:!0},r)}extend(e){const r=this.filterOutNonSupportedKeys(e,Mn);return new cn(Object.assign({},this,r))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}}class Ht{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return typeof e<"u"&&e!==null&&e!==""}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter(r=>this.hasValue(r)),this}setDelimiter(e){return this.delimiter=e,this}}class fa extends Error{constructor(e="Unsupported"){super(e)}}function ln(t){return new fa(t)}function da(){return this._qualifierModel||{error:ln(`unsupported qualifier ${this.constructor.name}`)}}class ha{constructor(){this._qualifierModel={}}toJson(){return da.apply(this)}}class yr extends ha{constructor(e,r){super(),this.delimiter="_",this.key=e,r instanceof Ht?this.qualifierValue=r:(this.qualifierValue=new Ht,this.qualifierValue.addValue(r))}toString(){const{key:e,delimiter:r,qualifierValue:n}=this;return`${e}${r}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class et extends yr{constructor(e,r){let n;r?n=new Ht([e,`${r}`]).setDelimiter(":"):n=e,super("fl",n),this.flagValue=r}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function pa(t,e){const r=Array.from(t.entries());return e.forEach(n=>{r.push(["fl",n])}),r.sort().map(n=>n[1])}function ga(){var t,e,r;const n=this._actionModel&&Object.keys(this._actionModel).length,s=(r=(e=(t=this._actionModel)===null||t===void 0?void 0:t.source)===null||e===void 0?void 0:e.transformation)===null||r===void 0?void 0:r.error;return s&&s instanceof Error?{error:s}:n?this._actionModel:{error:ln(`unsupported action ${this.constructor.name}`)}}class va{constructor(){this._actionModel={}}toJson(){return ga.apply(this)}}class fn extends va{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),pa(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if(typeof e=="string"){const[r,n]=e.toLowerCase().split("_");r==="fl"?this.flags.push(new et(n)):this.qualifiers.set(r,new yr(r,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return typeof e=="string"?this.flags.push(new et(e)):e instanceof et&&this.flags.push(e),this}addValueToQualifier(e,r){return this.qualifiers.get(e).addValue(r),this}}function ma(t){return t&&(t.match(/^#/)?`rgb:${t.substr(1)}`:t)}class ya extends fn{constructor(e){super(),this._actionModel={},this.addQualifier(new yr("b",new Ht(ma(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:r}=e;return new this(r)}}class kn{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:ln(`unsupported action ${this.constructor.name}`)}}}function _a(t){const e=t;return"error"in e&&!!e.error}function ba(){return new et("lossy")}function wa(){return new et("preserve_transparency")}function Ea(t){return new et("progressive",t)}class Ta extends Ht{constructor(e){super(e),this.val=e}getValue(){return this.val}}function mt(t){const e={};return Object.keys(t).forEach(r=>{e[t[r]]=r}),e}const Oa={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},Sa={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},Ca={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Aa={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},Ra={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},Pa={444:"CHROMA_444",420:"CHROMA_420"},xa={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};mt(Pa);mt(xa);mt(Oa);const ja=mt(Sa);mt(Ca);mt(Aa);mt(Ra);class $a extends fn{constructor(e,r,n){super(),this._actionModel={};let s;r instanceof Ta?s=r.getValue():s=r,this._actionModel.actionType=ja[e],this._actionModel[n]=s,this.addQualifier(new yr(e,r))}}class Ma extends et{constructor(e){super("progressive",e)}}class lr extends $a{constructor(e,r){super(e,r,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(ba()),this}progressive(e){return e instanceof Ma?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(Ea(e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(wa()),this}static fromJson(e){const{formatType:r,lossy:n,progressive:s,preserveTransparency:c}=e;let d;return r?d=new this("f",r):d=new this("f"),s&&(s.mode?d.progressive(s.mode):d.progressive()),n&&d.lossy(),c&&d.preserveTransparency(),d}}class _r{constructor(){this.actions=[]}addAction(e){let r;if(typeof e=="string"){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";r=new kn(e)}else r=e;return this.actions.push(r),this}addTransformation(e){return e instanceof _r?this.actions=this.actions.concat(e.actions):this.actions.push(new kn(e)),this}toString(){return this.actions.map(e=>e.toString()).filter(e=>e).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new lr("q",e)),this}format(e){return this.addAction(new lr("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new ya(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const r=new fn;let n=e;return typeof e=="string"&&(n=new et(e)),r.addQualifier(n),this.addAction(r)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const r of this.actions){const n=r.toJson();if(_a(n))return n;e.push(n)}return{actions:e}}}class ka extends _r{}class Ia extends _r{}function La(t){return t.match(/^https?:\//)}function Fa(t){return t.indexOf("/")<0}function Da(t){return t.match(/^v[0-9]+/)}function Va(t,e){const r=e.secure,n=e.privateCdn,s=e.cname,c=e.secureDistribution;return!r&&!s?`http://res.cloudinary.com/${t}`:r&&!c&&n?`https://${t}-res.cloudinary.com`:r&&!c?`https://res.cloudinary.com/${t}`:r&&c&&n?`https://${c}`:r&&c?`https://${c}/${t}`:!r&&s?`http://${s}/${t}`:"ERROR"}function Ua(t){return t||"image"}function Na(t){return t||"upload"}function qa(t,e,r){const n=r!==!1;return e?`v${e}`:Da(t)||La(t)||Fa(t)?"":n?"v1":""}function dn(t,e,r){let n=e>>0,s=String(r);return t.length>n?String(t):(n=n-t.length,n>s.length&&(s+=Qa(s,n/s.length)),s.slice(0,n)+String(t))}function Qa(t,e){let r=e,n="";for(;r>0;)n+=t,r--;return n}const Ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fr={};let In=0;Ba.split("").forEach(t=>{let e=In.toString(2);e=dn(e,6,"0"),fr[e]=t,In++});function Ya(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").reverse().join(".")}function Ga(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").map(e=>{const r=+e;if(isNaN(r)||r<0)throw"Invalid version number provided";return dn(e,2,"0")}).join(".")}function Ln(t){let e="";const n=t.split(".").length*6,s=Ya(t),c=Ga(s);let v=parseInt(c.split(".").join("")).toString(2);if(v=dn(v,n,"0"),v.length%6!==0)throw"Version must be smaller than 43.21.26)";return v.match(/.{1,6}/g).forEach(y=>{e+=fr[y]}),e}function Wa(t){const e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,product:t.product,feature:"0",osType:t.osType,osVersion:t.osVersion};return t.accessibility&&(e.feature="D"),t.lazyload&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e}const za="1.21.0";function Ha(t){const[e,r]=t.split("."),n=parseInt(e).toString(2),s=parseInt(r).toString(2),c=n.padStart(6,"0"),d=s.padStart(6,"0");return fr[c]+fr[d]}function Ja(){const t="0.0.0";if(typeof window<"u")return t;try{return process.versions.node||t}catch{return t}}function Ka(t){const e={techVersion:Ja(),sdkCode:"T",sdkSemver:za.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return t?Object.assign(Object.assign({},e),t):e}function Fn(t){const e=Ka(t),r=Wa(e);try{const n=Xa(r.techVersion),s=Ln(r.sdkSemver),c=Ln(n),d=Ha(r.osVersion),v=r.feature,y=r.sdkCode,{product:m,osType:E}=r;return`D${m}${y}${s}${c}${E}${d}${v}`}catch{return"E"}}function Xa(t){const e=t.split(".");return`${e[0]}.${e[1]}`}const Dn={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class Za{constructor(e,r={},n){this.setPublicID(e),this.setCloudConfig(r),this.setURLConfig(n)}setURLConfig(e){return this.urlConfig=new cn(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const e=this.suffix&&this.suffix.indexOf(".")>=0,r=this.suffix&&this.suffix.indexOf("/")>=0;if(e||r)throw"`suffix`` should not include . or /"}getResourceType(){const e=Ua(this.assetType),r=Na(this.deliveryType),n=!!this.suffix,s=`${e}/${r}`,c=Dn[`${e}/${r}`],d=this.urlConfig.useRootPath,v=this.urlConfig.shorten;if(d){if(s==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${s} instead`)}if(v&&s==="image/upload")return"iu";if(n){if(c)return c;throw new Error(`URL Suffix only supported for ${Object.keys(Dn).join(", ")}, Provided: ${s} instead`)}return s}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,r){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=Va(this.cloudName,this.urlConfig),s=e?e.toString():"",c=qa(this.publicID,this.version,this.urlConfig.forceVersion),d=this.publicID;if(typeof e=="string")return[n,this.getResourceType(),this.getSignature(),s,c,d.replace(/,/g,"%2C"),this.suffix].filter(y=>y).join("/");{const v=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(s),c,encodeURI(d).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(E=>E).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),y=this.urlConfig.analytics!==!1&&!d.includes("?");let m="";if(typeof this.urlConfig.queryParams=="object")try{const E=new URLSearchParams(this.urlConfig.queryParams);y&&E.set("_a",Fn(r)),m=E.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 m=this.urlConfig.queryParams||"",y&&(m+=`${m.length>0?"&":""}_a=${Fn(r)}`);return m?`${v}?${m}`:v}}}class ki extends Za{constructor(e,r,n,s){super(e,r,n),this.transformation=s}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new lr("q",e)),this}format(e){return this.addAction(new lr("f",e)),this}roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,e==null?void 0:e.trackedAnalytics)}}class eu extends ki{constructor(e,r,n){super(e,r,n,new ka)}}class tu extends ki{constructor(e,r,n){super(e,r,n,new Ia),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class ru{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new eu(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new tu(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const nu=({publicId:t,format:e="webp"})=>{const r=Gt.useMemo(()=>new ru({cloud:{cloudName:"fluid-attacks"}}),[]);return Gt.useMemo(()=>r.image(t).format(e),[r,t,e])},iu=({alt:t,height:e,publicId:r,width:n,plugins:s=[Ps(),Ms()]})=>{const c=nu({publicId:r});return Yi.jsx(aa,{alt:t??"img",cldImg:c,height:e??"",plugins:s,width:n??""})},ou=Gt.memo(iu);exports.CloudImage=ou;
|
|
199
|
+
Check the top-level render call using <`+p+">.")}return l}function pr(i,l){if(!(!i._store||i._store.validated||i.key!=null)){i._store.validated=!0;var p=yn(l);if(!Rr[p]){Rr[p]=!0;var v="";i&&i._owner&&i._owner!==pe.current&&(v=" It was passed a child from "+de(i._owner.type)+"."),ne(i),j('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',p,v),ne(null)}}}function $t(i,l){if(typeof i=="object"){if(Array.isArray(i))for(var p=0;p<i.length;p++){var v=i[p];Ue(v)&&pr(v,l)}else if(Ue(i))i._store&&(i._store.validated=!0);else if(i){var w=O(i);if(typeof w=="function"&&w!==i.entries)for(var N=w.call(i),x;!(x=N.next()).done;)Ue(x.value)&&pr(x.value,l)}}}function Pr(i){{var l=i.type;if(l==null||typeof l=="string")return;var p=de(l),v;if(typeof l=="function")v=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===A||l.$$typeof===q))v=l.propTypes;else return;v?(ne(i),e(v,i.props,"prop",p,we.getStackAddendum),ne(null)):l.PropTypes!==void 0&&!qe&&(qe=!0,j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")),typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gr(i){{ne(i);for(var l=Object.keys(i.props),p=0;p<l.length;p++){var v=l[p];if(v!=="children"&&v!=="key"){j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v);break}}i.ref!==null&&j("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null)}}function $r(i,l,p){var v=Te(i);if(!v){var w="";(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(w+=" 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 N=mn(l);N?w+=N:w+=Pt();var x;i===null?x="null":Array.isArray(i)?x="array":i!==void 0&&i.$$typeof===o?(x="<"+(de(i.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):x=typeof i,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,w)}var T=qt.apply(this,arguments);if(T==null)return T;if(v)for(var se=2;se<arguments.length;se++)$t(arguments[se],i);return i===u?gr(T):Pr(T),T}var kr=!1;function vn(i){var l=$r.bind(null,i);return l.type=i,kr||(kr=!0,re("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(l,"type",{enumerable:!1,get:function(){return re("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:i}),i}}),l}function _n(i,l,p){for(var v=zt.apply(this,arguments),w=2;w<arguments.length;w++)$t(arguments[w],v.type);return Pr(v),v}try{var jr=Object.freeze({}),bn=new Map([[jr,null]]),mr=new Set([jr]);bn.set(0,0),mr.add(0)}catch{}var wn=$r,En=_n,Sn=vn,Cn={map:Rt,forEach:Qt,count:Je,toArray:lr,only:Ht};H.Children=Cn,H.Component=oe,H.Fragment=u,H.Profiler=h,H.PureComponent=_t,H.StrictMode=f,H.Suspense=$,H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ae,H.cloneElement=En,H.createContext=fr,H.createElement=wn,H.createFactory=Sn,H.createRef=tt,H.forwardRef=hr,H.isValidElement=Ue,H.lazy=dr,H.memo=c,H.useCallback=le,H.useContext=b,H.useDebugValue=ie,H.useEffect=L,H.useImperativeHandle=ee,H.useLayoutEffect=M,H.useMemo=K,H.useReducer=Y,H.useRef=U,H.useState=C,H.version=r}();process.env.NODE_ENV==="production"?Cr.exports=J:Cr.exports=H;var Xt=Cr.exports,In={sdkSemver:"1.13.0",techVersion:Xt.version,sdkCode:"J"},zl=function(t){$s(e,t);function e(r){var n=t.call(this,r)||this;return n.imageRef=Xt.createRef(),n}return e.prototype.componentDidMount=function(){this.htmlLayerInstance=new kc(this.imageRef.current,this.props.cldImg,this.props.plugins,In)},e.prototype.componentDidUpdate=function(){Kr(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,In)},e.prototype.componentWillUnmount=function(){Kr(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},e.prototype.render=function(){var r=this.props;r.cldImg,r.plugins;var n=ks(r,["cldImg","plugins"]);if(yo())return Xt.createElement("img",Sr({suppressHydrationWarning:!0},n,{ref:this.imageRef}));var o=vl(this.props.plugins,this.props.cldImg,In);return Xt.createElement("img",Sr({},n,{src:o}))},e}(Xt.Component),Gl=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(t){$s(e,t);function e(r){var n=t.call(this,r)||this;return n.videoRef=Cr.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}return e.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new cl(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},e.prototype.componentDidUpdate=function(){Kr(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},e.prototype.componentWillUnmount=function(){Kr(this.htmlVideoLayerInstance.htmlPluginState)},e.prototype.getVideoAttributes=function(){var r=this,n={};return Gl.forEach(function(o){o in r.props&&(n[o]=r.props[o])}),n},e.prototype.attachRef=function(r){this.videoRef.current=r;var n=this.props.innerRef;n&&(n instanceof Function?n(r):n.current=r)},e.prototype.render=function(){var r=this.props;r.cldVid,r.cldPoster,r.plugins,r.sources,r.innerRef,r.useFetchFormat;var n=ks(r,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Xt.createElement("video",Sr({},n,{ref:this.attachRef}))},e})(Cr.exports.Component);function Yl(t){return!(typeof t!="object"||t instanceof Array)}class Wl{filterOutNonSupportedKeys(e,r){const n=Object.create({});return Yl(e)?(Object.keys(e).forEach(o=>{r.indexOf(o)>=0?n[o]=e[o]:console.warn("Warning - unsupported key provided to configuration: ",o)}),n):Object.create({})}}const fi=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class So extends Wl{constructor(e){super();const r=this.filterOutNonSupportedKeys(e,fi);Object.assign(this,{secure:!0},r)}extend(e){const r=this.filterOutNonSupportedKeys(e,fi);return new So(Object.assign({},this,r))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}}class xr{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return typeof e<"u"&&e!==null&&e!==""}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter(r=>this.hasValue(r)),this}setDelimiter(e){return this.delimiter=e,this}}class Ql extends Error{constructor(e="Unsupported"){super(e)}}function Co(t){return new Ql(t)}function Hl(){return this._qualifierModel||{error:Co(`unsupported qualifier ${this.constructor.name}`)}}class Jl{constructor(){this._qualifierModel={}}toJson(){return Hl.apply(this)}}class pn extends Jl{constructor(e,r){super(),this.delimiter="_",this.key=e,r instanceof xr?this.qualifierValue=r:(this.qualifierValue=new xr,this.qualifierValue.addValue(r))}toString(){const{key:e,delimiter:r,qualifierValue:n}=this;return`${e}${r}${n.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class xt extends pn{constructor(e,r){let n;r?n=new xr([e,`${r}`]).setDelimiter(":"):n=e,super("fl",n),this.flagValue=r}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function Kl(t,e){const r=Array.from(t.entries());return e.forEach(n=>{r.push(["fl",n])}),r.sort().map(n=>n[1])}function Xl(){var t,e,r;const n=this._actionModel&&Object.keys(this._actionModel).length,o=(r=(e=(t=this._actionModel)===null||t===void 0?void 0:t.source)===null||e===void 0?void 0:e.transformation)===null||r===void 0?void 0:r.error;return o&&o instanceof Error?{error:o}:n?this._actionModel:{error:Co(`unsupported action ${this.constructor.name}`)}}class Zl{constructor(){this._actionModel={}}toJson(){return Xl.apply(this)}}class xo extends Zl{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),Kl(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if(typeof e=="string"){const[r,n]=e.toLowerCase().split("_");r==="fl"?this.flags.push(new xt(n)):this.qualifiers.set(r,new pn(r,n))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return typeof e=="string"?this.flags.push(new xt(e)):e instanceof xt&&this.flags.push(e),this}addValueToQualifier(e,r){return this.qualifiers.get(e).addValue(r),this}}function ef(t){return t&&(t.match(/^#/)?`rgb:${t.substr(1)}`:t)}class tf extends xo{constructor(e){super(),this._actionModel={},this.addQualifier(new pn("b",new xr(ef(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){const{color:r}=e;return new this(r)}}class di{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:Co(`unsupported action ${this.constructor.name}`)}}}function rf(t){const e=t;return"error"in e&&!!e.error}function nf(){return new xt("lossy")}function of(){return new xt("preserve_transparency")}function sf(t){return new xt("progressive",t)}class af extends xr{constructor(e){super(e),this.val=e}getValue(){return this.val}}function Nt(t){const e={};return Object.keys(t).forEach(r=>{e[t[r]]=r}),e}const cf={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},uf={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},lf={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},ff={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},df={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},hf={444:"CHROMA_444",420:"CHROMA_420"},pf={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Nt(hf);Nt(pf);Nt(cf);const gf=Nt(uf);Nt(lf);Nt(ff);Nt(df);class mf extends xo{constructor(e,r,n){super(),this._actionModel={};let o;r instanceof af?o=r.getValue():o=r,this._actionModel.actionType=gf[e],this._actionModel[n]=o,this.addQualifier(new pn(e,r))}}class yf extends xt{constructor(e){super("progressive",e)}}class Zr extends mf{constructor(e,r){super(e,r,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(nf()),this}progressive(e){return e instanceof yf?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(sf(e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(of()),this}static fromJson(e){const{formatType:r,lossy:n,progressive:o,preserveTransparency:a}=e;let u;return r?u=new this("f",r):u=new this("f"),o&&(o.mode?u.progressive(o.mode):u.progressive()),n&&u.lossy(),a&&u.preserveTransparency(),u}}class gn{constructor(){this.actions=[]}addAction(e){let r;if(typeof e=="string"){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";r=new di(e)}else r=e;return this.actions.push(r),this}addTransformation(e){return e instanceof gn?this.actions=this.actions.concat(e.actions):this.actions.push(new di(e)),this}toString(){return this.actions.map(e=>e.toString()).filter(e=>e).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new Zr("q",e)),this}format(e){return this.addAction(new Zr("f",e)),this}roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new tf(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){const r=new xo;let n=e;return typeof e=="string"&&(n=new xt(e)),r.addQualifier(n),this.addAction(r)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){const e=[];for(const r of this.actions){const n=r.toJson();if(rf(n))return n;e.push(n)}return{actions:e}}}class vf extends gn{}class _f extends gn{}function bf(t){return t.match(/^https?:\//)}function wf(t){return t.indexOf("/")<0}function Ef(t){return t.match(/^v[0-9]+/)}function Sf(t,e){const r=e.secure,n=e.privateCdn,o=e.cname,a=e.secureDistribution;return!r&&!o?`http://res.cloudinary.com/${t}`:r&&!a&&n?`https://${t}-res.cloudinary.com`:r&&!a?`https://res.cloudinary.com/${t}`:r&&a&&n?`https://${a}`:r&&a?`https://${a}/${t}`:!r&&o?`http://${o}/${t}`:"ERROR"}function Cf(t){return t||"image"}function xf(t){return t||"upload"}function Af(t,e,r){const n=r!==!1;return e?`v${e}`:Ef(t)||bf(t)||wf(t)?"":n?"v1":""}function Ao(t,e,r){let n=e>>0,o=String(r);return t.length>n?String(t):(n=n-t.length,n>o.length&&(o+=Of(o,n/o.length)),o.slice(0,n)+String(t))}function Of(t,e){let r=e,n="";for(;r>0;)n+=t,r--;return n}const Tf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",en={};let hi=0;Tf.split("").forEach(t=>{let e=hi.toString(2);e=Ao(e,6,"0"),en[e]=t,hi++});function Rf(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").reverse().join(".")}function Pf(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").map(e=>{const r=+e;if(isNaN(r)||r<0)throw"Invalid version number provided";return Ao(e,2,"0")}).join(".")}function pi(t){let e="";const n=t.split(".").length*6,o=Rf(t),a=Pf(o);let f=parseInt(a.split(".").join("")).toString(2);if(f=Ao(f,n,"0"),f.length%6!==0)throw"Version must be smaller than 43.21.26)";return f.match(/.{1,6}/g).forEach(h=>{e+=en[h]}),e}function $f(t){const e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,product:t.product,feature:"0",osType:t.osType,osVersion:t.osVersion};return t.accessibility&&(e.feature="D"),t.lazyload&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e}const kf="1.21.0";function jf(t){const[e,r]=t.split("."),n=parseInt(e).toString(2),o=parseInt(r).toString(2),a=n.padStart(6,"0"),u=o.padStart(6,"0");return en[a]+en[u]}function If(){const t="0.0.0";if(typeof window<"u")return t;try{return process.versions.node||t}catch{return t}}function Mf(t){const e={techVersion:If(),sdkCode:"T",sdkSemver:kf.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return t?Object.assign(Object.assign({},e),t):e}function gi(t){const e=Mf(t),r=$f(e);try{const n=Df(r.techVersion),o=pi(r.sdkSemver),a=pi(n),u=jf(r.osVersion),f=r.feature,h=r.sdkCode,{product:g,osType:_}=r;return`D${g}${h}${o}${a}${_}${u}${f}`}catch{return"E"}}function Df(t){const e=t.split(".");return`${e[0]}.${e[1]}`}const mi={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class Lf{constructor(e,r={},n){this.setPublicID(e),this.setCloudConfig(r),this.setURLConfig(n)}setURLConfig(e){return this.urlConfig=new So(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const e=this.suffix&&this.suffix.indexOf(".")>=0,r=this.suffix&&this.suffix.indexOf("/")>=0;if(e||r)throw"`suffix`` should not include . or /"}getResourceType(){const e=Cf(this.assetType),r=xf(this.deliveryType),n=!!this.suffix,o=`${e}/${r}`,a=mi[`${e}/${r}`],u=this.urlConfig.useRootPath,f=this.urlConfig.shorten;if(u){if(o==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${o} instead`)}if(f&&o==="image/upload")return"iu";if(n){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(mi).join(", ")}, Provided: ${o} instead`)}return o}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,r){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=Sf(this.cloudName,this.urlConfig),o=e?e.toString():"",a=Af(this.publicID,this.version,this.urlConfig.forceVersion),u=this.publicID;if(typeof e=="string")return[n,this.getResourceType(),this.getSignature(),o,a,u.replace(/,/g,"%2C"),this.suffix].filter(h=>h).join("/");{const f=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(o),a,encodeURI(u).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(_=>_).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),h=this.urlConfig.analytics!==!1&&!u.includes("?");let g="";if(typeof this.urlConfig.queryParams=="object")try{const _=new URLSearchParams(this.urlConfig.queryParams);h&&_.set("_a",gi(r)),g=_.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 g=this.urlConfig.queryParams||"",h&&(g+=`${g.length>0?"&":""}_a=${gi(r)}`);return g?`${f}?${g}`:f}}}class Gs extends Lf{constructor(e,r,n,o){super(e,r,n),this.transformation=o}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new Zr("q",e)),this}format(e){return this.addAction(new Zr("f",e)),this}roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,e==null?void 0:e.trackedAnalytics)}}class Ff extends Gs{constructor(e,r,n){super(e,r,n,new vf)}}class Vf extends Gs{constructor(e,r,n){super(e,r,n,new _f),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class Nf{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new Ff(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new Vf(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const Uf=({publicId:t,format:e="webp"})=>{const r=fe.useMemo(()=>new Nf({cloud:{cloudName:"fluid-attacks"}}),[]);return fe.useMemo(()=>r.image(t).format(e),[r,t,e])},Bf=({alt:t="img",height:e="",width:r="",plugins:n=[dl(),ml()],publicId:o})=>{const a=Uf({publicId:o});return Er.jsx(zl,{alt:t,cldImg:a,height:e,plugins:n,width:r})},Ys=fe.memo(Bf),qf=io(Hi)`
|
|
200
|
+
${({$center:t=!1})=>`
|
|
201
|
+
${t?"margin: auto;":""}
|
|
202
|
+
`}
|
|
203
|
+
`,Ws=fe.forwardRef(function({as:e="div",center:r,children:n,id:o,onHover:a,onLeave:u,...f},h){return Er.jsx(qf,{$center:r,as:e,id:o,onMouseLeave:u,onMouseOver:a,ref:h,...f,children:n})}),zf={footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"}},Gf=({publicId:t,variant:e})=>Er.jsx(Ws,{...zf[e],children:Er.jsx(Ys,{alt:"logo",publicId:t})});exports.BaseComponent=Hi;exports.CloudImage=Ys;exports.Container=Ws;exports.CustomThemeProvider=Oc;exports.Logo=Gf;exports.getStyledConfig=Qi;exports.hiddenProps=yi;exports.icons=xc;exports.setBorder=zi;exports.setDisplay=Gi;exports.setInteraction=Wi;exports.setMargin=Bi;exports.setPadding=Ui;exports.setPosition=qi;exports.setText=Yi;exports.theme=ce;exports.uniqueIcons=Ac;exports.variantBuilder=ra;
|
|
204
|
+
//# sourceMappingURL=design.js.map
|