@ikas/loyalty-widget-renderer 1.0.0-alpha.1
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/build/_virtual/index.js +1 -0
- package/build/_virtual/index2.js +1 -0
- package/build/_virtual/index3.js +1 -0
- package/build/_virtual/react-is.development.js +1 -0
- package/build/_virtual/react-is.development2.js +1 -0
- package/build/_virtual/react-is.production.js +1 -0
- package/build/_virtual/react-is.production.min.js +1 -0
- package/build/_virtual/use-sync-external-store-shim.development.js +1 -0
- package/build/_virtual/use-sync-external-store-shim.production.js +1 -0
- package/build/assets/badgeLevel1.d.ts +2 -0
- package/build/assets/badgeLevel1.js +1 -0
- package/build/assets/badgeLevel2.d.ts +2 -0
- package/build/assets/badgeLevel2.js +1 -0
- package/build/assets/badgeLevel3.d.ts +2 -0
- package/build/assets/badgeLevel3.js +1 -0
- package/build/assets/badgeLevel4.d.ts +2 -0
- package/build/assets/badgeLevel4.js +1 -0
- package/build/assets/icons/check-circle-fill.d.ts +2 -0
- package/build/assets/icons/check-circle-fill.js +1 -0
- package/build/assets/icons/check.d.ts +2 -0
- package/build/assets/icons/check.js +1 -0
- package/build/assets/icons/chevron-left.d.ts +2 -0
- package/build/assets/icons/chevron-left.js +1 -0
- package/build/assets/icons/x-close.d.ts +2 -0
- package/build/assets/icons/x-close.js +1 -0
- package/build/assets/index.d.ts +27 -0
- package/build/assets/widget-icons/illustraions/approvedChatIllustration.d.ts +2 -0
- package/build/assets/widget-icons/illustraions/approvedChatIllustration.js +1 -0
- package/build/assets/widget-icons/illustraions/bankCoin.d.ts +2 -0
- package/build/assets/widget-icons/illustraions/bankCoin.js +1 -0
- package/build/assets/widget-icons/illustraions/bigSaleMedal.d.ts +2 -0
- package/build/assets/widget-icons/illustraions/bigSaleMedal.js +1 -0
- package/build/assets/widget-icons/illustraions/bubbleChatIllustration.d.ts +2 -0
- package/build/assets/widget-icons/illustraions/bubbleChatIllustration.js +1 -0
- package/build/assets/widget-icons/illustraions/giftIllustration.d.ts +2 -0
- package/build/assets/widget-icons/illustraions/giftIllustration.js +1 -0
- package/build/assets/widget-icons/illustraions/medal.d.ts +2 -0
- package/build/assets/widget-icons/illustraions/medal.js +1 -0
- package/build/assets/widget-icons/illustraions/shippingBox.d.ts +2 -0
- package/build/assets/widget-icons/illustraions/shippingBox.js +1 -0
- package/build/assets/widget-icons/illustraions/shoppingCartIllustration.d.ts +2 -0
- package/build/assets/widget-icons/illustraions/shoppingCartIllustration.js +1 -0
- package/build/assets/widget-icons/illustraions/tshirtIllustration.d.ts +2 -0
- package/build/assets/widget-icons/illustraions/tshirtIllustration.js +1 -0
- package/build/assets/widget-icons/illustraions/usersIllustration.d.ts +2 -0
- package/build/assets/widget-icons/illustraions/usersIllustration.js +1 -0
- package/build/assets/widget-icons/normal/bubbleChatDone.d.ts +2 -0
- package/build/assets/widget-icons/normal/bubbleChatDone.js +1 -0
- package/build/assets/widget-icons/normal/commentAdd01.d.ts +2 -0
- package/build/assets/widget-icons/normal/commentAdd01.js +1 -0
- package/build/assets/widget-icons/normal/couponPercent.d.ts +2 -0
- package/build/assets/widget-icons/normal/couponPercent.js +1 -0
- package/build/assets/widget-icons/normal/discountTag02.d.ts +2 -0
- package/build/assets/widget-icons/normal/discountTag02.js +1 -0
- package/build/assets/widget-icons/normal/gift.d.ts +2 -0
- package/build/assets/widget-icons/normal/gift.js +1 -0
- package/build/assets/widget-icons/normal/moneyAdd01.d.ts +2 -0
- package/build/assets/widget-icons/normal/moneyAdd01.js +1 -0
- package/build/assets/widget-icons/normal/packageDelivered.d.ts +2 -0
- package/build/assets/widget-icons/normal/packageDelivered.js +1 -0
- package/build/assets/widget-icons/normal/saveMoneyDollar.d.ts +2 -0
- package/build/assets/widget-icons/normal/saveMoneyDollar.js +1 -0
- package/build/assets/widget-icons/normal/shoppingBasketAdd02.d.ts +2 -0
- package/build/assets/widget-icons/normal/shoppingBasketAdd02.js +1 -0
- package/build/assets/widget-icons/normal/userAdd01.d.ts +2 -0
- package/build/assets/widget-icons/normal/userAdd01.js +1 -0
- package/build/ext/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js +1 -0
- package/build/ext/@emotion/memoize/dist/memoize.browser.esm.js +1 -0
- package/build/ext/@emotion/stylis/dist/stylis.browser.esm.js +1 -0
- package/build/ext/@emotion/unitless/dist/unitless.browser.esm.js +1 -0
- package/build/ext/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -0
- package/build/ext/hoist-non-react-statics/ext/react-is/cjs/react-is.development.js +9 -0
- package/build/ext/hoist-non-react-statics/ext/react-is/cjs/react-is.production.min.js +9 -0
- package/build/ext/hoist-non-react-statics/ext/react-is/index.js +1 -0
- package/build/ext/i18next/dist/esm/i18next.js +1 -0
- package/build/ext/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js +1 -0
- package/build/ext/react-i18next/dist/es/context.js +1 -0
- package/build/ext/react-i18next/dist/es/defaults.js +1 -0
- package/build/ext/react-i18next/dist/es/i18nInstance.js +1 -0
- package/build/ext/react-i18next/dist/es/initReactI18next.js +1 -0
- package/build/ext/react-i18next/dist/es/unescape.js +1 -0
- package/build/ext/react-i18next/dist/es/useTranslation.js +1 -0
- package/build/ext/react-i18next/dist/es/utils.js +1 -0
- package/build/ext/react-is/cjs/react-is.development.js +10 -0
- package/build/ext/react-is/cjs/react-is.production.js +10 -0
- package/build/ext/react-is/index.js +1 -0
- package/build/ext/styled-components/dist/styled-components.browser.esm.js +1 -0
- package/build/ext/tslib/tslib.es6.mjs.js +1 -0
- package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +10 -0
- package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +10 -0
- package/build/ext/use-sync-external-store/shim/index.js +1 -0
- package/build/ext/uuid/dist/esm-browser/md5.js +1 -0
- package/build/ext/uuid/dist/esm-browser/parse.js +1 -0
- package/build/ext/uuid/dist/esm-browser/regex.js +1 -0
- package/build/ext/uuid/dist/esm-browser/rng.js +1 -0
- package/build/ext/uuid/dist/esm-browser/sha1.js +1 -0
- package/build/ext/uuid/dist/esm-browser/stringify.js +1 -0
- package/build/ext/uuid/dist/esm-browser/v3.js +1 -0
- package/build/ext/uuid/dist/esm-browser/v35.js +1 -0
- package/build/ext/uuid/dist/esm-browser/v4.js +1 -0
- package/build/ext/uuid/dist/esm-browser/v5.js +1 -0
- package/build/ext/uuid/dist/esm-browser/validate.js +1 -0
- package/build/index.d.ts +12 -0
- package/build/index.js +1 -0
- package/build/models/base.d.ts +4 -0
- package/build/models/base.js +1 -0
- package/build/models/button/index.d.ts +7 -0
- package/build/models/button/index.js +1 -0
- package/build/models/category/index.d.ts +5 -0
- package/build/models/image/index.d.ts +12 -0
- package/build/models/image/index.js +1 -0
- package/build/models/index.d.ts +28 -0
- package/build/models/index.js +1 -0
- package/build/models/loyalty-customer-info/index.d.ts +28 -0
- package/build/models/loyalty-customer-info/index.js +1 -0
- package/build/models/loyalty-program-earning-method/index.d.ts +51 -0
- package/build/models/loyalty-program-earning-method/index.js +1 -0
- package/build/models/loyalty-program-point-history/index.d.ts +17 -0
- package/build/models/loyalty-program-point-history/index.js +1 -0
- package/build/models/loyalty-program-spending-method/index.d.ts +38 -0
- package/build/models/loyalty-program-spending-method/index.js +1 -0
- package/build/models/loyalty-widget/header/header-background/index.d.ts +9 -0
- package/build/models/loyalty-widget/header/header-background/index.js +1 -0
- package/build/models/loyalty-widget/header/index.d.ts +8 -0
- package/build/models/loyalty-widget/header/index.js +1 -0
- package/build/models/loyalty-widget/header-background/index.d.ts +9 -0
- package/build/models/loyalty-widget/index.d.ts +12 -0
- package/build/models/loyalty-widget/index.js +1 -0
- package/build/models/loyalty-widget/settings/index.d.ts +10 -0
- package/build/models/loyalty-widget/settings/index.js +1 -0
- package/build/models/loyalty-widget/types/index.d.ts +29 -0
- package/build/models/loyalty-widget/types/index.js +1 -0
- package/build/models/types/index.d.ts +145 -0
- package/build/models/types/index.js +1 -0
- package/build/renderer/components/button/index.d.ts +15 -0
- package/build/renderer/components/button/index.js +1 -0
- package/build/renderer/components/button/style.d.ts +15 -0
- package/build/renderer/components/button/style.js +1 -0
- package/build/renderer/components/index.d.ts +3 -0
- package/build/renderer/components/loyalty-method-card/index.d.ts +23 -0
- package/build/renderer/components/loyalty-method-card/index.js +1 -0
- package/build/renderer/components/loyalty-method-card/style.d.ts +22 -0
- package/build/renderer/components/loyalty-method-card/style.js +1 -0
- package/build/renderer/components/section-title/index.d.ts +8 -0
- package/build/renderer/components/section-title/index.js +1 -0
- package/build/renderer/components/section-title/style.d.ts +1 -0
- package/build/renderer/components/section-title/style.js +1 -0
- package/build/renderer/components/style/typography.d.ts +11 -0
- package/build/renderer/components/style/typography.js +1 -0
- package/build/renderer/index.d.ts +5 -0
- package/build/renderer/index.js +1 -0
- package/build/renderer/screens/credit-earning-methods-screen/index.d.ts +9 -0
- package/build/renderer/screens/credit-earning-methods-screen/index.js +1 -0
- package/build/renderer/screens/credit-earning-methods-screen/style.d.ts +5 -0
- package/build/renderer/screens/credit-earning-methods-screen/style.js +1 -0
- package/build/renderer/screens/credit-history-screen/index.d.ts +9 -0
- package/build/renderer/screens/credit-history-screen/index.js +1 -0
- package/build/renderer/screens/credit-history-screen/style.d.ts +17 -0
- package/build/renderer/screens/credit-history-screen/style.js +1 -0
- package/build/renderer/screens/credit-spending-methods-screen/index.d.ts +9 -0
- package/build/renderer/screens/credit-spending-methods-screen/index.js +1 -0
- package/build/renderer/screens/credit-spending-methods-screen/style.d.ts +8 -0
- package/build/renderer/screens/credit-spending-methods-screen/style.js +1 -0
- package/build/renderer/screens/loyalty-level-screen/index.d.ts +9 -0
- package/build/renderer/screens/loyalty-level-screen/index.js +1 -0
- package/build/renderer/screens/loyalty-level-screen/style.d.ts +32 -0
- package/build/renderer/screens/loyalty-level-screen/style.js +1 -0
- package/build/renderer/screens/main-screen/earning-methods-section/index.d.ts +14 -0
- package/build/renderer/screens/main-screen/earning-methods-section/index.js +1 -0
- package/build/renderer/screens/main-screen/header/auth-user-section/index.d.ts +7 -0
- package/build/renderer/screens/main-screen/header/auth-user-section/index.js +1 -0
- package/build/renderer/screens/main-screen/header/auth-user-section/style.d.ts +7 -0
- package/build/renderer/screens/main-screen/header/auth-user-section/style.js +1 -0
- package/build/renderer/screens/main-screen/header/index.d.ts +10 -0
- package/build/renderer/screens/main-screen/header/index.js +1 -0
- package/build/renderer/screens/main-screen/header/logo-section/index.d.ts +7 -0
- package/build/renderer/screens/main-screen/header/logo-section/index.js +1 -0
- package/build/renderer/screens/main-screen/header/logo-section/style.d.ts +2 -0
- package/build/renderer/screens/main-screen/header/logo-section/style.js +1 -0
- package/build/renderer/screens/main-screen/header/style.d.ts +12 -0
- package/build/renderer/screens/main-screen/header/style.js +1 -0
- package/build/renderer/screens/main-screen/header/title-section/index.d.ts +7 -0
- package/build/renderer/screens/main-screen/header/title-section/index.js +1 -0
- package/build/renderer/screens/main-screen/header/title-section/style.d.ts +7 -0
- package/build/renderer/screens/main-screen/header/title-section/style.js +1 -0
- package/build/renderer/screens/main-screen/header/user-logged-section/index.d.ts +7 -0
- package/build/renderer/screens/main-screen/header/user-logged-section/index.js +1 -0
- package/build/renderer/screens/main-screen/header/user-logged-section/style.d.ts +18 -0
- package/build/renderer/screens/main-screen/header/user-logged-section/style.js +1 -0
- package/build/renderer/screens/main-screen/index.d.ts +9 -0
- package/build/renderer/screens/main-screen/index.js +1 -0
- package/build/renderer/screens/main-screen/program-info-section/index.d.ts +8 -0
- package/build/renderer/screens/main-screen/program-info-section/index.js +1 -0
- package/build/renderer/screens/main-screen/program-info-section/style.d.ts +8 -0
- package/build/renderer/screens/main-screen/program-info-section/style.js +1 -0
- package/build/renderer/screens/main-screen/spending-methods-section/dynamic-slider.d.ts +9 -0
- package/build/renderer/screens/main-screen/spending-methods-section/dynamic-slider.js +1 -0
- package/build/renderer/screens/main-screen/spending-methods-section/index.d.ts +13 -0
- package/build/renderer/screens/main-screen/spending-methods-section/index.js +1 -0
- package/build/renderer/screens/main-screen/style.d.ts +5 -0
- package/build/renderer/screens/main-screen/style.js +1 -0
- package/build/renderer/style.d.ts +6 -0
- package/build/renderer/style.js +1 -0
- package/build/renderer/utils/i18n.d.ts +2 -0
- package/build/renderer/utils/i18n.js +1 -0
- package/build/renderer/utils/locales/en.json.js +1 -0
- package/build/renderer/utils/locales/tr.json.js +1 -0
- package/build/renderer/utils/loyalty-details.d.ts +12 -0
- package/build/renderer/utils/loyalty-details.js +1 -0
- package/build/renderer/utils/translations.d.ts +5 -0
- package/build/utils.d.ts +10 -0
- package/build/utils.js +1 -0
- package/package.json +68 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";var t=function(t){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M9.75 13.5H15.75M12.75 16.5V10.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),e.createElement("path",{d:"M5.25 5.625V5.25C5.25 3.17893 6.92893 1.5 9 1.5C11.071 1.5 12.75 3.17893 12.75 5.25V5.625",stroke:"currentColor",strokeWidth:"1.4"}),e.createElement("path",{d:"M7.5 16.5C5.78999 16.4999 4.92814 16.4938 4.32607 15.9564C3.71702 15.4129 3.56323 14.4948 3.25564 12.6586L2.38339 7.45168C2.24152 6.60472 2.17058 6.18125 2.38903 5.90312C2.60746 5.625 3.01101 5.625 3.81809 5.625H14.1819C14.989 5.625 15.3925 5.625 15.6109 5.90312C15.8294 6.18125 15.7585 6.60472 15.6166 7.45168L15.3572 9",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),e.createElement("path",{d:"M3.375 13.125H7.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}))};export{t as ShoppingBasketAdd02};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";var r=function(r){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e.createElement("path",{d:"M1.84824 7.00781C1.66184 7.00781 1.49174 6.85672 1.50031 6.65921C1.55049 5.50265 1.6911 4.74973 2.08506 4.15413C2.31171 3.81147 2.59323 3.51344 2.91692 3.27351C3.79181 2.625 5.02604 2.625 7.49449 2.625H10.5055C12.974 2.625 14.2082 2.625 15.0831 3.27351C15.4068 3.51344 15.6883 3.81147 15.915 4.15413C16.3089 4.74967 16.4495 5.50249 16.4997 6.65882C16.5083 6.85656 16.338 7.00781 16.1514 7.00781C15.112 7.00781 14.2695 7.89975 14.2695 9C14.2695 10.1003 15.112 10.9922 16.1514 10.9922C16.338 10.9922 16.5083 11.1434 16.4997 11.3412C16.4495 12.4976 16.3089 13.2503 15.915 13.8459C15.6883 14.1885 15.4068 14.4865 15.0831 14.7265C14.2082 15.375 12.974 15.375 10.5055 15.375H7.49449C5.02604 15.375 3.79181 15.375 2.91692 14.7265C2.59323 14.4865 2.31171 14.1885 2.08506 13.8459C1.6911 13.2503 1.55049 12.4973 1.50031 11.3408C1.49174 11.1433 1.66184 10.9922 1.84824 10.9922C2.88759 10.9922 3.73014 10.1003 3.73014 9C3.73014 7.89975 2.88759 7.00781 1.84824 7.00781Z",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round"}),e.createElement("path",{d:"M7.125 10.875L10.875 7.125",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M7.125 7.125H7.13342M10.8666 10.875H10.875",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}))};export{r as UserAdd01};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../../memoize/dist/memoize.browser.esm.js";var t=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,r=e(function(e){return t.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(n){var r={};return function(t){return void 0===r[t]&&(r[t]=n(t)),r[t]}}export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){function r(e,t,l,f,h){for(var u,k,d,w,C,v=0,x=0,$=0,O=0,z=0,D=0,F=d=u=0,H=0,I=0,J=0,K=0,L=l.length,M=L-1,N="",P="",Q="",R="";H<L;){if(k=l.charCodeAt(H),H===M&&0!==x+O+$+v&&(0!==x&&(k=47===x?10:47),O=$=v=0,L++,M++),0===x+O+$+v){if(H===M&&(0<I&&(N=N.replace(b,"")),0<N.trim().length)){switch(k){case 32:case 9:case 59:case 13:case 10:break;default:N+=l.charAt(H)}k=59}switch(k){case 123:for(u=(N=N.trim()).charCodeAt(0),d=1,K=++H;H<L;){switch(k=l.charCodeAt(H)){case 123:d++;break;case 125:d--;break;case 47:switch(k=l.charCodeAt(H+1)){case 42:case 47:e:{for(F=H+1;F<M;++F)switch(l.charCodeAt(F)){case 47:if(42===k&&42===l.charCodeAt(F-1)&&H+2!==F){H=F+1;break e}break;case 10:if(47===k){H=F+1;break e}}H=F}}break;case 91:k++;case 40:k++;case 34:case 39:for(;H++<M&&l.charCodeAt(H)!==k;);}if(0===d)break;H++}if(d=l.substring(K,H),0===u&&(u=(N=N.replace(o,"").trim()).charCodeAt(0)),64===u){switch(0<I&&(N=N.replace(b,"")),k=N.charCodeAt(1)){case 100:case 109:case 115:case 45:I=t;break;default:I=B}if(K=(d=r(t,I,d,k,h+1)).length,0<E&&(C=n(3,d,I=a(B,N,J),t,j,y,K,k,h,f),N=I.join(""),void 0!==C&&0===(K=(d=C.trim()).length)&&(k=0,d="")),0<K)switch(k){case 115:N=N.replace(m,i);case 100:case 109:case 45:d=N+"{"+d+"}";break;case 107:d=(N=N.replace(p,"$1 $2"))+"{"+d+"}",d=1===q||2===q&&s("@"+d,3)?"@-webkit-"+d+"@"+d:"@"+d;break;default:d=N+d,112===f&&(P+=d,d="")}else d=""}else d=r(t,a(t,N,J),d,f,h+1);Q+=d,d=J=I=F=u=0,N="",k=l.charCodeAt(++H);break;case 125:case 59:if(1<(K=(N=(0<I?N.replace(b,""):N).trim()).length))switch(0===F&&(u=N.charCodeAt(0),45===u||96<u&&123>u)&&(K=(N=N.replace(" ",":")).length),0<E&&void 0!==(C=n(1,N,t,e,j,y,P.length,f,h,f))&&0===(K=(N=C.trim()).length)&&(N="\0\0"),u=N.charCodeAt(0),k=N.charCodeAt(1),u){case 0:break;case 64:if(105===k||99===k){R+=N+l.charAt(H);break}default:58!==N.charCodeAt(K-1)&&(P+=c(N,u,k,N.charCodeAt(2)))}J=I=F=u=0,N="",k=l.charCodeAt(++H)}}switch(k){case 13:case 10:47===x?x=0:0===1+u&&107!==f&&0<N.length&&(I=1,N+="\0"),0<E*G&&n(0,N,t,e,j,y,P.length,f,h,f),y=1,j++;break;case 59:case 125:if(0===x+O+$+v){y++;break}default:switch(y++,w=l.charAt(H),k){case 9:case 32:if(0===O+v+x)switch(z){case 44:case 58:case 9:case 32:w="";break;default:32!==k&&(w=" ")}break;case 0:w="\\0";break;case 12:w="\\f";break;case 11:w="\\v";break;case 38:0===O+x+v&&(I=J=1,w="\f"+w);break;case 108:if(0===O+x+v+S&&0<F)switch(H-F){case 2:112===z&&58===l.charCodeAt(H-3)&&(S=z);case 8:111===D&&(S=D)}break;case 58:0===O+x+v&&(F=H);break;case 44:0===x+$+O+v&&(I=1,w+="\r");break;case 34:case 39:0===x&&(O=O===k?0:0===O?k:O);break;case 91:0===O+x+$&&v++;break;case 93:0===O+x+$&&v--;break;case 41:0===O+x+v&&$--;break;case 40:if(0===O+x+v){if(0===u)if(2*z+3*D==533);else u=1;$++}break;case 64:0===x+$+O+v+F+d&&(d=1);break;case 42:case 47:if(!(0<O+v+$))switch(x){case 0:switch(2*k+3*l.charCodeAt(H+1)){case 235:x=47;break;case 220:K=H,x=42}break;case 42:47===k&&42===z&&K+2!==H&&(33===l.charCodeAt(K+2)&&(P+=l.substring(K,H+1)),w="",x=0)}}0===x&&(N+=w)}D=z,z=k,H++}if(0<(K=P.length)){if(I=t,0<E&&(void 0!==(C=n(2,P,I,e,j,y,K,f,h,f))&&0===(P=C).length))return R+P+Q;if(P=I.join(",")+"{"+P+"}",0!==q*S){switch(2!==q||s(P,2)||(S=0),S){case 111:P=P.replace(A,":-moz-$1")+P;break;case 112:P=P.replace(g,"::-webkit-input-$1")+P.replace(g,"::-moz-$1")+P.replace(g,":-ms-input-$1")+P}S=0}}return R+P+Q}function a(e,r,a){var c=r.trim().split(d);r=c;var s=c.length,i=e.length;switch(i){case 0:case 1:var n=0;for(e=0===i?"":e[0]+" ";n<s;++n)r[n]=t(e,r[n],a).trim();break;default:var l=n=0;for(r=[];n<s;++n)for(var f=0;f<i;++f)r[l++]=t(e[f]+" ",c[n],a).trim()}return r}function t(e,r,a){var t=r.charCodeAt(0);switch(33>t&&(t=(r=r.trim()).charCodeAt(0)),t){case 38:return r.replace(w,"$1"+e.trim());case 58:return e.trim()+r.replace(w,"$1"+e.trim());default:if(0<1*a&&0<r.indexOf("\f"))return r.replace(w,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+r}function c(e,r,a,t){var i=e+";",n=2*r+3*a+4*t;if(944===n){e=i.indexOf(":",9)+1;var l=i.substring(e,i.length-1).trim();return l=i.substring(0,e).trim()+l+";",1===q||2===q&&s(l,1)?"-webkit-"+l+l:l}if(0===q||2===q&&!s(i,1))return i;switch(n){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(z,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(l=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+l+i;case 1005:return u.test(i)?i.replace(h,":-webkit-")+i.replace(h,":-moz-")+i:i;case 1e3:switch(r=(l=i.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(r)){case 226:l=i.replace(C,"tb");break;case 232:l=i.replace(C,"tb-rl");break;case 220:l=i.replace(C,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+l+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(r=(i=e).length-10,n=(l=(33===i.charCodeAt(r)?i.substring(0,r):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:i=i.replace(l,"-webkit-"+l)+";"+i;break;case 207:case 102:i=i.replace(l,"-webkit-"+(102<n?"inline-":"")+"box")+";"+i.replace(l,"-webkit-"+l)+";"+i.replace(l,"-ms-"+l+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return l=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+l+"-ms-flex-"+l+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(x,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(x,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?c(e.replace("stretch","fill-available"),r,a,t).replace(":fill-available",":stretch"):i.replace(l,"-webkit-"+l)+i.replace(l,"-moz-"+l.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===a+t&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(k,"$1-webkit-$2")+i}return i}function s(e,r){var a=e.indexOf(1===r?":":"{"),t=e.substring(0,3!==r?a:10);return a=e.substring(a+1,e.length-1),F(2!==r?t:t.replace($,"$1"),a,r)}function i(e,r){var a=c(r,r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2));return a!==r+";"?a.replace(v," or ($1)").substring(4):"("+r+")"}function n(e,r,a,t,c,s,i,n,l,o){for(var b,h=0,u=r;h<E;++h)switch(b=D[h].call(f,e,u,a,t,c,s,i,n,l,o)){case void 0:case!1:case!0:case null:break;default:u=b}if(u!==r)return u}function l(e){return void 0!==(e=e.prefix)&&(F=null,e?"function"!=typeof e?q=1:(q=2,F=e):q=0),l}function f(e,a){var t=e;if(33>t.charCodeAt(0)&&(t=t.trim()),t=[t],0<E){var c=n(-1,a,t,t,j,y,0,0,0,0);void 0!==c&&"string"==typeof c&&(a=c)}var s=r(B,t,a,0,0);return 0<E&&(void 0!==(c=n(-2,s,t,t,j,y,s.length,0,0,0))&&(s=c)),S=0,y=j=1,s}var o=/^\0+/g,b=/[\0\r\f]/g,h=/: */g,u=/zoo|gra/,k=/([,: ])(transform)/g,d=/,\r+?/g,w=/([\t\r\n ])*\f?&/g,p=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,A=/:(read-only)/g,C=/[svh]\w+-[tblr]{2}/,m=/\(\s*(.*)\s*\)/g,v=/([\s\S]*?);/g,x=/-self|flex-/g,$=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,z=/([^-])(image-set\()/,y=1,j=1,S=0,q=1,B=[],D=[],E=0,F=null,G=0;return f.use=function e(r){switch(r){case void 0:case null:E=D.length=0;break;default:if("function"==typeof r)D[E++]=r;else if("object"==typeof r)for(var a=0,t=r.length;a<t;++a)e(r[a]);else G=0|!!r}return e},f.set=l,void 0!==e&&l(e),f}export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o={animationIterationCount: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};export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import'./../ext/react-is/index.js';import{r as e}from"../../../_virtual/index3.js";var t=e.exports,r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},p={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return t.isMemo(e)?p:a[e.$$typeof]||r}a[t.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[t.Memo]=p;var y=Object.defineProperty,i=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,l=Object.prototype;var d=function e(t,r,p){if("string"!=typeof r){if(l){var a=f(r);a&&a!==l&&e(t,a,p)}var d=i(r);n&&(d=d.concat(n(r)));for(var m=s(t),u=s(r),g=0;g<d.length;++g){var v=d[g];if(!(o[v]||p&&p[v]||u&&u[v]||m&&m[v])){var O=c(r,v);try{y(t,v,O)}catch(e){}}}}return t};export{d as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{__exports as e}from"../../../../../_virtual/react-is.development2.js";
|
|
2
|
+
/** @license React v16.13.1
|
|
3
|
+
* react-is.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var r;function t(){return r||(r=1,"production"!==process.env.NODE_ENV&&function(){var r="function"==typeof Symbol&&Symbol.for,t=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,f=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,i=r?Symbol.for("react.async_mode"):60111,u=r?Symbol.for("react.concurrent_mode"):60111,l=r?Symbol.for("react.forward_ref"):60112,y=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,p=r?Symbol.for("react.memo"):60115,d=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,S=r?Symbol.for("react.fundamental"):60117,$=r?Symbol.for("react.responder"):60118,v=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case t:var m=e.type;switch(m){case i:case u:case n:case a:case c:case y:return m;default:var b=m&&m.$$typeof;switch(b){case s:case l:case d:case p:case f:return b;default:return r}}case o:return r}}}var M=i,C=u,w=s,x=f,h=t,P=l,E=n,R=d,g=p,j=o,A=a,F=c,I=y,z=!1;function L(e){return _(e)===u}e.AsyncMode=M,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=x,e.Element=h,e.ForwardRef=P,e.Fragment=E,e.Lazy=R,e.Memo=g,e.Portal=j,e.Profiler=A,e.StrictMode=F,e.Suspense=I,e.isAsyncMode=function(e){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||_(e)===i},e.isConcurrentMode=L,e.isContextConsumer=function(e){return _(e)===s},e.isContextProvider=function(e){return _(e)===f},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},e.isForwardRef=function(e){return _(e)===l},e.isFragment=function(e){return _(e)===n},e.isLazy=function(e){return _(e)===d},e.isMemo=function(e){return _(e)===p},e.isPortal=function(e){return _(e)===o},e.isProfiler=function(e){return _(e)===a},e.isStrictMode=function(e){return _(e)===c},e.isSuspense=function(e){return _(e)===y},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===a||e===c||e===y||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===S||e.$$typeof===$||e.$$typeof===v||e.$$typeof===b)},e.typeOf=_}()),e}export{t as __require};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{__exports as e}from"../../../../../_virtual/react-is.production.min.js";
|
|
2
|
+
/** @license React v16.13.1
|
|
3
|
+
* react-is.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var r;function t(){if(r)return e;r=1;var t="function"==typeof Symbol&&Symbol.for,o=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,c=t?Symbol.for("react.fragment"):60107,f=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,y=t?Symbol.for("react.concurrent_mode"):60111,l=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,S=t?Symbol.for("react.lazy"):60116,$=t?Symbol.for("react.block"):60121,d=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;function M(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case o:switch(e=e.type){case s:case y:case c:case a:case f:case m:return e;default:switch(e=e&&e.$$typeof){case i:case l:case S:case b:case u:return e;default:return r}}case n:return r}}}function v(e){return M(e)===y}return e.AsyncMode=s,e.ConcurrentMode=y,e.ContextConsumer=i,e.ContextProvider=u,e.Element=o,e.ForwardRef=l,e.Fragment=c,e.Lazy=S,e.Memo=b,e.Portal=n,e.Profiler=a,e.StrictMode=f,e.Suspense=m,e.isAsyncMode=function(e){return v(e)||M(e)===s},e.isConcurrentMode=v,e.isContextConsumer=function(e){return M(e)===i},e.isContextProvider=function(e){return M(e)===u},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},e.isForwardRef=function(e){return M(e)===l},e.isFragment=function(e){return M(e)===c},e.isLazy=function(e){return M(e)===S},e.isMemo=function(e){return M(e)===b},e.isPortal=function(e){return M(e)===n},e.isProfiler=function(e){return M(e)===a},e.isStrictMode=function(e){return M(e)===f},e.isSuspense=function(e){return M(e)===m},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===c||e===y||e===a||e===f||e===m||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===S||e.$$typeof===b||e.$$typeof===u||e.$$typeof===i||e.$$typeof===l||e.$$typeof===d||e.$$typeof===_||e.$$typeof===C||e.$$typeof===$)},e.typeOf=M,e}export{t as __require};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r}from"../../../../_virtual/index3.js";import{__require as e}from"./cjs/react-is.production.min.js";import{__require as o}from"./cjs/react-is.development.js";var s;s=r,"production"===process.env.NODE_ENV?s.exports=e():s.exports=o();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=e=>"string"==typeof e,t=()=>{let e,t;const s=new Promise((s,i)=>{e=s,t=i});return s.resolve=e,s.reject=t,s},s=e=>null==e?"":""+e,i=/###/g,o=e=>e&&e.indexOf("###")>-1?e.replace(i,"."):e,n=t=>!t||e(t),a=(t,s,i)=>{const a=e(s)?s.split("."):s;let r=0;for(;r<a.length-1;){if(n(t))return{};const e=o(a[r]);!t[e]&&i&&(t[e]=new i),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{},++r}return n(t)?{}:{obj:t,k:o(a[r])}},r=(e,t,s)=>{const{obj:i,k:o}=a(e,t,Object);if(void 0!==i||1===t.length)return void(i[o]=s);let n=t[t.length-1],r=t.slice(0,t.length-1),l=a(e,r,Object);for(;void 0===l.obj&&r.length;)n=`${r[r.length-1]}.${n}`,r=r.slice(0,r.length-1),l=a(e,r,Object),l?.obj&&void 0!==l.obj[`${l.k}.${n}`]&&(l.obj=void 0);l.obj[`${l.k}.${n}`]=s},l=(e,t)=>{const{obj:s,k:i}=a(e,t);if(s&&Object.prototype.hasOwnProperty.call(s,i))return s[i]},h=(t,s,i)=>{for(const o in s)"__proto__"!==o&&"constructor"!==o&&(o in t?e(t[o])||t[o]instanceof String||e(s[o])||s[o]instanceof String?i&&(t[o]=s[o]):h(t[o],s[o],i):t[o]=s[o]);return t},c=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const u=t=>e(t)?t.replace(/[&<>"'\/]/g,e=>p[e]):t;const g=[" ",",","?","!",";"],d=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}(20),f=(e,t,s=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const i=t.split(s);let o=e;for(let e=0;e<i.length;){if(!o||"object"!=typeof o)return;let t,n="";for(let a=e;a<i.length;++a)if(a!==e&&(n+=s),n+=i[a],t=o[n],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<i.length-1)continue;e+=a-e+1;break}o=t}return o},m=e=>e?.replace("_","-"),y={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class x{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||y,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,s,i,o){return o&&!this.debug?null:(e(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[s](t))}create(e){return new x(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new x(this.logger,e)}}var v=new x;class b{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const s=this.observers[e].get(t)||0;this.observers[e].set(t,s+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,s])=>{for(let i=0;i<s;i++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([s,i])=>{for(let o=0;o<i;o++)s.apply(s,[e,...t])})}}}class k extends b{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(t,s,i,o={}){const n=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let r;t.indexOf(".")>-1?r=t.split("."):(r=[t,s],i&&(Array.isArray(i)?r.push(...i):e(i)&&n?r.push(...i.split(n)):r.push(i)));const h=l(this.data,r);return!h&&!s&&!i&&t.indexOf(".")>-1&&(t=r[0],s=r[1],i=r.slice(2).join(".")),!h&&a&&e(i)?f(this.data?.[t]?.[s],i,n):h}addResource(e,t,s,i,o={silent:!1}){const n=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];s&&(a=a.concat(n?s.split(n):s)),e.indexOf(".")>-1&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),r(this.data,a,i),o.silent||this.emit("added",e,t,s,i)}addResources(t,s,i,o={silent:!1}){for(const o in i)(e(i[o])||Array.isArray(i[o]))&&this.addResource(t,s,o,i[o],{silent:!0});o.silent||this.emit("added",t,s,i)}addResourceBundle(e,t,s,i,o,n={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),i=s,s=t,t=a[1]),this.addNamespaces(t);let c=l(this.data,a)||{};n.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?h(c,s,o):c={...c,...s},r(this.data,a,c),n.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var S={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,s,i,o){return e.forEach(e=>{t=this.processors[e]?.process(t,s,i,o)??t}),t}};const O=Symbol("i18next/PATH_KEY");function L(e,t){const{[O]:s}=e(function(){const e=[],t=Object.create(null);let s;return t.get=(i,o)=>(s?.revoke?.(),o===O?e:(e.push(o),s=Proxy.revocable(i,t),s.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return s.join(t?.keySeparator??".")}const w={},$=t=>!e(t)&&"boolean"!=typeof t&&"number"!=typeof t;class R extends b{constructor(e,t={}){var s,i;super(),s=e,i=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{s[e]&&(i[e]=s[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=v.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const s={...t};if(null==e)return!1;const i=this.resolve(e,s);if(void 0===i?.res)return!1;const o=$(i.res);return!1!==s.returnObjects||!o}extractFromKey(t,s){let i=void 0!==s.nsSeparator?s.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");const o=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator;let n=s.ns||this.options.defaultNS||[];const a=i&&t.indexOf(i)>-1,r=!(this.options.userDefinedKeySeparator||s.keySeparator||this.options.userDefinedNsSeparator||s.nsSeparator||((e,t,s)=>{t=t||"",s=s||"";const i=g.filter(e=>t.indexOf(e)<0&&s.indexOf(e)<0);if(0===i.length)return!0;const o=d.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`);let n=!o.test(e);if(!n){const t=e.indexOf(s);t>0&&!o.test(e.substring(0,t))&&(n=!0)}return n})(t,i,o));if(a&&!r){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:e(n)?[n]:n};const a=t.split(i);(i!==o||i===o&&this.options.ns.indexOf(a[0])>-1)&&(n=a.shift()),t=a.join(o)}return{key:t,namespaces:e(n)?[n]:n}}translate(t,s,i){let o="object"==typeof s?{...s}:s;if("object"!=typeof o&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof o&&(o={...o}),o||(o={}),null==t)return"";"function"==typeof t&&(t=L(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);const n=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,{key:r,namespaces:l}=this.extractFromKey(t[t.length-1],o),h=l[l.length-1];let c=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const p=o.lng||this.language,u=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===p?.toLowerCase())return u?n?{res:`${h}${c}${r}`,usedKey:r,exactUsedKey:r,usedLng:p,usedNS:h,usedParams:this.getUsedParamsDetails(o)}:`${h}${c}${r}`:n?{res:r,usedKey:r,exactUsedKey:r,usedLng:p,usedNS:h,usedParams:this.getUsedParamsDetails(o)}:r;const g=this.resolve(t,o);let d=g?.res;const f=g?.usedKey||r,m=g?.exactUsedKey||r,y=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==o.count&&!e(o.count),b=R.hasDefaultValue(o),k=v?this.pluralResolver.getSuffix(p,o.count,o):"",S=o.ordinal&&v?this.pluralResolver.getSuffix(p,o.count,{ordinal:!1}):"",O=v&&!o.ordinal&&0===o.count,w=O&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${k}`]||o[`defaultValue${S}`]||o.defaultValue;let C=d;x&&!d&&b&&(C=w);const P=$(C),N=Object.prototype.toString.apply(C);if(!(x&&C&&P&&["[object Number]","[object Function]","[object RegExp]"].indexOf(N)<0)||e(y)&&Array.isArray(C))if(x&&e(y)&&Array.isArray(d))d=d.join(y),d&&(d=this.extendTranslation(d,t,o,i));else{let e=!1,s=!1;!this.isValidLookup(d)&&b&&(e=!0,d=w),this.isValidLookup(d)||(s=!0,d=r);const n=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:d,l=b&&w!==d&&this.options.updateMissing;if(s||e||l){if(this.logger.log(l?"updateKey":"missingKey",p,h,r,l?w:d),a){const e=this.resolve(r,{...o,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let s=0;s<t.length;s++)e.push(t[s]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(o.lng||this.language):e.push(o.lng||this.language);const s=(e,t,s)=>{const i=b&&s!==d?s:n;this.options.missingKeyHandler?this.options.missingKeyHandler(e,h,t,i,l,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,h,t,i,l,o),this.emit("missingKey",e,h,t,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,o);O&&o[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{s([e],r+t,o[`defaultValue${t}`]||w)})}):s(e,r,w))}d=this.extendTranslation(d,t,o,g,i),s&&d===r&&this.options.appendNamespaceToMissingKey&&(d=`${h}${c}${r}`),(s||e)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}${c}${r}`:r,e?d:void 0,o))}else{if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,C,{...o,ns:l}):`key '${r} (${this.language})' returned an object instead of string.`;return n?(g.res=e,g.usedParams=this.getUsedParamsDetails(o),g):e}if(a){const e=Array.isArray(C),t=e?[]:{},s=e?m:f;for(const e in C)if(Object.prototype.hasOwnProperty.call(C,e)){const i=`${s}${a}${e}`;t[e]=b&&!d?this.translate(i,{...o,defaultValue:$(w)?w[e]:void 0,joinArrays:!1,ns:l}):this.translate(i,{...o,joinArrays:!1,ns:l}),t[e]===i&&(t[e]=C[e])}d=t}}return n?(g.res=d,g.usedParams=this.getUsedParamsDetails(o),g):d}extendTranslation(t,s,i,o,n){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const a=e(t)&&(void 0!==i?.interpolation?.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let r;if(a){const e=t.match(this.interpolator.nestingRegexp);r=e&&e.length}let l=i.replace&&!e(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,i.lng||this.language||o.usedLng,i),a){const e=t.match(this.interpolator.nestingRegexp);r<(e&&e.length)&&(i.nest=!1)}!i.lng&&o&&o.res&&(i.lng=this.language||o.usedLng),!1!==i.nest&&(t=this.interpolator.nest(t,(...e)=>n?.[0]!==e[0]||i.context?this.translate(...e,s):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${s[0]}`),null),i)),i.interpolation&&this.interpolator.reset()}const a=i.postProcess||this.options.postProcess,r=e(a)?[a]:a;return null!=t&&r?.length&&!1!==i.applyPostProcessor&&(t=S.handle(r,t,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,s={}){let i,o,n,a,r;return e(t)&&(t=[t]),t.forEach(t=>{if(this.isValidLookup(i))return;const l=this.extractFromKey(t,s),h=l.key;o=h;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const p=void 0!==s.count&&!e(s.count),u=p&&!s.ordinal&&0===s.count,g=void 0!==s.context&&(e(s.context)||"number"==typeof s.context)&&""!==s.context,d=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);c.forEach(e=>{this.isValidLookup(i)||(r=e,w[`${d[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(r)||(w[`${d[0]}-${e}`]=!0,this.logger.warn(`key "${o}" for languages "${d.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach(t=>{if(this.isValidLookup(i))return;a=t;const o=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,h,t,e,s);else{let e;p&&(e=this.pluralResolver.getSuffix(t,s.count,s));const i=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(s.ordinal&&0===e.indexOf(n)&&o.push(h+e.replace(n,this.options.pluralSeparator)),o.push(h+e),u&&o.push(h+i)),g){const t=`${h}${this.options.contextSeparator||"_"}${s.context}`;o.push(t),p&&(s.ordinal&&0===e.indexOf(n)&&o.push(t+e.replace(n,this.options.pluralSeparator)),o.push(t+e),u&&o.push(t+i))}}let r;for(;r=o.pop();)this.isValidLookup(i)||(n=r,i=this.getResource(t,e,r,s))}))})}),{res:i,usedKey:o,exactUsedKey:n,usedLng:a,usedNS:r}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,s,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,s,i):this.resourceStore.getResource(e,t,s,i)}getUsedParamsDetails(t={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!e(t.replace);let o=i?t.replace:t;if(i&&void 0!==t.count&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!i){o={...o};for(const e of s)delete o[e]}return o}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,12)&&void 0!==e[s])return!0;return!1}}class C{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=v.create("languageUtils")}getScriptPartFromCode(e){if(!(e=m(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=m(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(t){if(e(t)&&t.indexOf("-")>-1){let e;try{e=Intl.getCanonicalLocales(t)[0]}catch(e){}return e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const s=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(s)||(t=s)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const s=this.getScriptPartFromCode(e);if(this.isSupportedCode(s))return t=s;const i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i?e:e.indexOf("-")<0&&i.indexOf("-")<0?void 0:e.indexOf("-")>0&&i.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(t,s){if(!t)return[];if("function"==typeof t&&(t=t(s)),e(t)&&(t=[t]),Array.isArray(t))return t;if(!s)return t.default||[];let i=t[s];return i||(i=t[this.getScriptPartFromCode(s)]),i||(i=t[this.formatLanguageCode(s)]),i||(i=t[this.getLanguagePartFromCode(s)]),i||(i=t.default),i||[]}toResolveHierarchy(t,s){const i=this.getFallbackCodes((!1===s?[]:s)||this.options.fallbackLng||[],t),o=[],n=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return e(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(t))):e(t)&&n(this.formatLanguageCode(t)),i.forEach(e=>{o.indexOf(e)<0&&n(this.formatLanguageCode(e))}),o}}const P={zero:0,one:1,two:2,few:3,many:4,other:5},N={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class j{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=v.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const s=m("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:s,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let n;try{n=new Intl.PluralRules(s,{type:i})}catch(s){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),N;if(!e.match(/-|_/))return N;const i=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(i,t)}return this.pluralRulesCache[o]=n,n}needsPlural(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,s={}){return this.getSuffixes(e,s).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((e,t)=>P[e]-P[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,s={}){const i=this.getRule(e,s);return i?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const E=(t,s,i,o=".",n=!0)=>{let a=((e,t,s)=>{const i=l(e,s);return void 0!==i?i:l(t,s)})(t,s,i);return!a&&n&&e(i)&&(a=f(t,i,o),void 0===a&&(a=f(s,i,o))),a},F=e=>e.replace(/\$/g,"$$$$");class I{constructor(e={}){this.logger=v.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:i,prefix:o,prefixEscaped:n,suffix:a,suffixEscaped:r,formatSeparator:l,unescapeSuffix:h,unescapePrefix:p,nestingPrefix:g,nestingPrefixEscaped:d,nestingSuffix:f,nestingSuffixEscaped:m,nestingOptionsSeparator:y,maxReplaces:x,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:u,this.escapeValue=void 0===s||s,this.useRawValueToEscape=void 0!==i&&i,this.prefix=o?c(o):n||"{{",this.suffix=a?c(a):r||"}}",this.formatSeparator=l||",",this.unescapePrefix=h?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?c(g):d||c("$t("),this.nestingSuffix=f?c(f):m||c(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=x||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,i,o,n){let a,r,l;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){const t=E(i,h,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(t,void 0,o,{...n,...i,interpolationkey:e}):t}const t=e.split(this.formatSeparator),s=t.shift().trim(),a=t.join(this.formatSeparator).trim();return this.format(E(i,h,s,this.options.keySeparator,this.options.ignoreJSONStructure),a,o,{...n,...i,interpolationkey:s})};this.resetRegExp();const p=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>F(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?F(this.escape(e)):F(e)}].forEach(i=>{for(l=0;a=i.regex.exec(t);){const o=a[1].trim();if(r=c(o),void 0===r)if("function"==typeof p){const s=p(t,a,n);r=e(s)?s:""}else if(n&&Object.prototype.hasOwnProperty.call(n,o))r="";else{if(u){r=a[0];continue}this.logger.warn(`missed to pass in variable ${o} for interpolating ${t}`),r=""}else e(r)||this.useRawValueToEscape||(r=s(r));const h=i.safeValue(r);if(t=t.replace(a[0],h),u?(i.regex.lastIndex+=r.length,i.regex.lastIndex-=a[0].length):i.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,i,o={}){let n,a,r;const l=(e,t)=>{const s=this.nestingOptionsSeparator;if(e.indexOf(s)<0)return e;const i=e.split(new RegExp(`${s}[ ]*{`));let o=`{${i[1]}`;e=i[0],o=this.interpolate(o,r);const n=o.match(/'/g),a=o.match(/"/g);((n?.length??0)%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${s}${o}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,e};for(;n=this.nestingRegexp.exec(t);){let h=[];r={...o},r=r.replace&&!e(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;const c=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==c&&(h=n[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),n[1]=n[1].slice(0,c)),a=i(l.call(this,n[1].trim(),r),r),a&&n[0]===t&&!e(a))return a;e(a)||(a=s(a)),a||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),a=""),h.length&&(a=h.reduce((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()}),a.trim())),t=t.replace(n[0],a),this.regexp.lastIndex=0}return t}}const V=e=>{const t={};return(s,i,o)=>{let n=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(n={...n,[o.interpolationkey]:void 0});const a=i+JSON.stringify(n);let r=t[a];return r||(r=e(m(i),o),t[a]=r),r(s)}},T=e=>(t,s,i)=>e(m(s),i)(t);class D{constructor(e={}){this.logger=v.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const s=t.cacheInBuiltFormats?V:T;this.formats={number:s((e,t)=>{const s=new Intl.NumberFormat(e,{...t});return e=>s.format(e)}),currency:s((e,t)=>{const s=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>s.format(e)}),datetime:s((e,t)=>{const s=new Intl.DateTimeFormat(e,{...t});return e=>s.format(e)}),relativetime:s((e,t)=>{const s=new Intl.RelativeTimeFormat(e,{...t});return e=>s.format(e,t.range||"day")}),list:s((e,t)=>{const s=new Intl.ListFormat(e,{...t});return e=>s.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=V(t)}format(e,t,s,i={}){const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce((e,t)=>{const{formatName:o,formatOptions:n}=(e=>{let t=e.toLowerCase().trim();const s={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const o=i[1].substring(0,i[1].length-1);"currency"===t&&o.indexOf(":")<0?s.currency||(s.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?s.range||(s.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...i]=e.split(":"),o=i.join(":").trim().replace(/^'+|'+$/g,""),n=t.trim();s[n]||(s[n]=o),"false"===o&&(s[n]=!1),"true"===o&&(s[n]=!0),isNaN(o)||(s[n]=parseInt(o,10))}})}return{formatName:t,formatOptions:s}})(t);if(this.formats[o]){let t=e;try{const a=i?.formatParams?.[i.interpolationkey]||{},r=a.locale||a.lng||i.locale||i.lng||s;t=this.formats[o](e,r,{...n,...i,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class K extends b{constructor(e,t,s,i={}){super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=v.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,i.backend,i)}queueLoad(e,t,s,i){const o={},n={},a={},r={};return e.forEach(e=>{let i=!0;t.forEach(t=>{const a=`${e}|${t}`;!s.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===n[a]&&(n[a]=!0):(this.state[a]=1,i=!1,void 0===n[a]&&(n[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===r[t]&&(r[t]=!0)))}),i||(a[e]=!0)}),(Object.keys(o).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(n),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(r)}}loaded(e,t,s){const i=e.split("|"),o=i[0],n=i[1];t&&this.emit("failedLoading",o,n,t),!t&&s&&this.store.addResourceBundle(o,n,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const r={};this.queue.forEach(s=>{((e,t,s)=>{const{obj:i,k:o}=a(e,t,Object);i[o]=i[o]||[],i[o].push(s)})(s.loaded,[o],n),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(s,e),t&&s.errors.push(t),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach(e=>{r[e]||(r[e]={});const t=s.loaded[e];t.length&&t.forEach(t=>{void 0===r[e][t]&&(r[e][t]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",r),this.queue=this.queue.filter(e=>!e.done)}read(e,t,s,i=0,o=this.retryTimeout,n){if(!e.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:s,tried:i,wait:o,callback:n});this.readingCalls++;const a=(a,r)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&r&&i<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,s,i+1,2*o,n)},o):n(a,r)},r=this.backend[s].bind(this.backend);if(2!==r.length)return r(e,t,a);try{const s=r(e,t);s&&"function"==typeof s.then?s.then(e=>a(null,e)).catch(a):a(null,s)}catch(e){a(e)}}prepareLoading(t,s,i={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();e(t)&&(t=this.languageUtils.toResolveHierarchy(t)),e(s)&&(s=[s]);const n=this.queueLoad(t,s,i,o);if(!n.toLoad.length)return n.pending.length||o(),null;n.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e,t=""){const s=e.split("|"),i=s[0],o=s[1];this.read(i,o,"read",void 0,void 0,(s,n)=>{s&&this.logger.warn(`${t}loading namespace ${o} for language ${i} failed`,s),!s&&n&&this.logger.log(`${t}loaded namespace ${o} for language ${i}`,n),this.loaded(e,s,n)})}saveMissing(e,t,s,i,o,n={},a=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=s&&""!==s){if(this.backend?.create){const r={...n,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,s,i,r):l(e,t,s,i),o&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,s,i,a,r)}e&&e[0]&&this.store.addResource(e[0],t,s,i)}}else this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const A=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let s={};if("object"==typeof t[1]&&(s=t[1]),e(t[1])&&(s.defaultValue=t[1]),e(t[2])&&(s.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const e=t[3]||t[2];Object.keys(e).forEach(t=>{s[t]=e[t]})}return s},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),U=t=>(e(t.ns)&&(t.ns=[t.ns]),e(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),e(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),"boolean"==typeof t.initImmediate&&(t.initAsync=t.initImmediate),t),M=()=>{};class H extends b{constructor(e={},t){var s;if(super(),this.options=U(e),this.services={},this.logger=v,this.modules={external:[]},s=this,Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(e=>{"function"==typeof s[e]&&(s[e]=s[e].bind(s))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(s={},i){this.isInitializing=!0,"function"==typeof s&&(i=s,s={}),null==s.defaultNS&&s.ns&&(e(s.ns)?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));const o=A();this.options={...o,...this.options,...U(s)},this.options.interpolation={...o.interpolation,...this.options.interpolation},void 0!==s.keySeparator&&(this.options.userDefinedKeySeparator=s.keySeparator),void 0!==s.nsSeparator&&(this.options.userDefinedNsSeparator=s.nsSeparator);const n=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?v.init(n(this.modules.logger),this.options):v.init(null,this.options),e=this.modules.formatter?this.modules.formatter:D;const t=new C(this.options);this.store=new k(this.options.resources,this.options);const s=this.services;s.logger=v,s.resourceStore=this.store,s.languageUtils=t,s.pluralResolver=new j(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format||(s.formatter=n(e),s.formatter.init&&s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new I(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new K(n(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(s.languageDetector=n(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=n(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new R(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,i||(i=M),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const a=t(),r=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),i(e,t)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?r():setTimeout(r,0),a}loadResources(t,s=M){let i=s;const o=e(t)?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===o?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return i();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(o)t(o);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),i(e)})}else i(null)}reloadResources(e,s,i){const o=t();return"function"==typeof e&&(i=e,e=void 0),"function"==typeof s&&(i=s,s=void 0),e||(e=this.languages),s||(s=this.options.ns),i||(i=M),this.services.backendConnector.reload(e,s,e=>{o.resolve(),i(e)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(s,i){this.isLanguageChangingTo=s;const o=t();this.emit("languageChanging",s);const n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,t)=>{t?this.isLanguageChangingTo===s&&(n(t),this.translator.changeLanguage(t),this.isLanguageChangingTo=void 0,this.emit("languageChanged",t),this.logger.log("languageChanged",t)):this.isLanguageChangingTo=void 0,o.resolve((...e)=>this.t(...e)),i&&i(e,(...e)=>this.t(...e))},r=t=>{s||t||!this.services.languageDetector||(t=[]);const i=e(t)?t:t&&t[0],o=this.store.hasLanguageSomeTranslations(i)?i:this.services.languageUtils.getBestMatchFromCodes(e(t)?[t]:t);o&&(this.language||n(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,e=>{a(e,o)})};return s||!this.services.languageDetector||this.services.languageDetector.async?!s&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(s):r(this.services.languageDetector.detect()),o}getFixedT(t,s,i){const o=(e,t,...s)=>{let n;n="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(s)):{...t},n.lng=n.lng||o.lng,n.lngs=n.lngs||o.lngs,n.ns=n.ns||o.ns,""!==n.keyPrefix&&(n.keyPrefix=n.keyPrefix||i||o.keyPrefix);const a=this.options.keySeparator||".";let r;return n.keyPrefix&&Array.isArray(e)?r=e.map(e=>("function"==typeof e&&(e=L(e,{...this.options,...t})),`${n.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=L(e,{...this.options,...t})),r=n.keyPrefix?`${n.keyPrefix}${a}${e}`:e),this.t(r,n)};return e(t)?o.lng=t:o.lngs=t,o.ns=s,o.keyPrefix=i,o}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;const n=(e,t)=>{const s=this.services.backendConnector.state[`${e}|${t}`];return-1===s||0===s||2===s};if(t.precheck){const e=t.precheck(this,n);if(void 0!==e)return e}return!!this.hasResourceBundle(s,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!n(s,e)||i&&!n(o,e)))}loadNamespaces(s,i){const o=t();return this.options.ns?(e(s)&&(s=[s]),s.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{o.resolve(),i&&i(e)}),o):(i&&i(),Promise.resolve())}loadLanguages(s,i){const o=t();e(s)&&(s=[s]);const n=this.options.preload||[],a=s.filter(e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=n.concat(a),this.loadResources(e=>{o.resolve(),i&&i(e)}),o):(i&&i(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new C(A());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const s=new H(e,t);return s.createInstance=H.createInstance,s}cloneInstance(e={},t=M){const s=e.forkResourceStore;s&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},o=new H(i);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));if(["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},s){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((s,i)=>(s[i]={...e[t][i]},s),e[t]),e),{});o.store=new k(e,i),o.services.resourceStore=o.store}return o.translator=new R(o.services,i),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(i,t),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const B=H.createInstance();B.createInstance,B.dir,B.init,B.loadResources,B.reloadResources,B.use,B.changeLanguage,B.getFixedT,B.t,B.exists,B.setDefaultNamespace,B.hasLoadedNamespace,B.loadNamespaces,B.loadLanguages;export{B as default,L as keyFromSelector};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
new RegExp(Object.keys({" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","©":"©","®":"®","™":"™","…":"…","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","•":"•","′":"′","″":"″","‹":"‹","›":"›","§":"§","¶":"¶","·":"·"," ":" "," ":" "," ":" ","€":"€","£":"£","¥":"¥","¢":"¢","¤":"¤","×":"×","÷":"÷","−":"−","±":"±","≠":"≠","≤":"≤","≥":"≥","≈":"≈","≡":"≡","∞":"∞","∫":"∫","∑":"∑","∏":"∏","√":"√","∂":"∂","‰":"‰","°":"°","µ":"µ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","À":"À","Á":"Á","Â":"Â","Ã":"Ã","Ä":"Ä","Å":"Å","Æ":"Æ","Ç":"Ç","È":"È","É":"É","Ê":"Ê","Ë":"Ë","Ì":"Ì","Í":"Í","Î":"Î","Ï":"Ï","Ð":"Ð","Ñ":"Ñ","Ò":"Ò","Ó":"Ó","Ô":"Ô","Õ":"Õ","Ö":"Ö","Ø":"Ø","Ù":"Ù","Ú":"Ú","Û":"Û","Ü":"Ü","Ý":"Ý","Þ":"Þ","ß":"ß","à":"à","á":"á","â":"â","ã":"ã","ä":"ä","å":"å","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"í","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ","¡":"¡","¿":"¿","ƒ":"ƒ","ˆ":"ˆ","˜":"˜","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ª":"ª","º":"º","¯":"¯","´":"´","¸":"¸","¹":"¹","²":"²","³":"³","¼":"¼","½":"½","¾":"¾","♠":"♠","♣":"♣","♥":"♥","♦":"♦","◊":"◊","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","ℵ":"ℵ"}).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as s}from"react";const e=s();class a{constructor(){this.usedNamespaces={}}addUsedNamespaces(s){s.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}export{e as I18nContext,a as ReportNamespaces};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{unescape as e}from"./unescape.js";let s={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e};const n=(e={})=>{s={...s,...e}},t=()=>s;export{t as getDefaults,n as setDefaults};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let t;const e=e=>{t=e},o=()=>t;export{o as getI18n,e as setI18n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{setDefaults as t}from"./defaults.js";import{setI18n as o}from"./i18nInstance.js";const r={type:"3rdParty",init(r){t(r.options.react),o(r)}};export{r as initReactI18next};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const p=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,o={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},t=p=>o[p],e=o=>o.replace(p,t);export{e as unescape};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useContext as e,useMemo as r,useRef as t,useCallback as n,useState as o,useEffect as i}from"react";import"../../../use-sync-external-store/shim/index.js";import{I18nContext as a,ReportNamespaces as s}from"./context.js";import{warnOnce as c,hasLoadedNamespace as l,loadLanguages as u,loadNamespaces as f,isString as g,isObject as p}from"./utils.js";import{getDefaults as d}from"./defaults.js";import{s as m}from"../../../../_virtual/index.js";import{getI18n as y}from"./i18nInstance.js";const x={t:(e,r)=>g(r)?r:p(r)&&g(r.defaultValue)?r.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},_=()=>()=>{},b=(p,b={})=>{const{i18n:j}=b,{i18n:N,defaultNS:O}=e(a)||{},P=j||N||y();P&&!P.reportNamespaces&&(P.reportNamespaces=new s),P||c(P,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const S=r(()=>({...d(),...P?.options?.react,...b}),[P,b]),{useSuspense:h,keyPrefix:w}=S,I=p||O||P?.options?.defaultNS,v=g(I)?[I]:I||["translation"],E=r(()=>v,v);P?.reportNamespaces?.addUsedNamespaces?.(E);const k=t(0),T=n(e=>{if(!P)return _;const{bindI18n:r,bindI18nStore:t}=S,n=()=>{k.current+=1,e()};return r&&P.on(r,n),t&&P.store.on(t,n),()=>{r&&r.split(" ").forEach(e=>P.off(e,n)),t&&t.split(" ").forEach(e=>P.store.off(e,n))}},[P,S]),A=t(),z=n(()=>{if(!P)return x;const e=!(!P.isInitialized&&!P.initializedStoreOnce)&&E.every(e=>l(e,P,S)),r=b.lng||P.language,t=k.current,n=A.current;if(n&&n.ready===e&&n.lng===r&&n.keyPrefix===w&&n.revision===t)return n;const o={t:P.getFixedT(r,"fallback"===S.nsMode?E:E[0],w),ready:e,lng:r,keyPrefix:w,revision:t};return A.current=o,o},[P,E,w,S,b.lng]),[V,C]=o(0),{t:D,ready:F}=m.exports.useSyncExternalStore(T,z,z);i(()=>{if(P&&!F&&!h){const e=()=>C(e=>e+1);b.lng?u(P,b.lng,E,e):f(P,E,e)}},[P,b.lng,E,F,h,V]);const L=P||{},M=t(null),R=t(),U=e=>{const r=Object.getOwnPropertyDescriptors(e);r.__original&&delete r.__original;const t=Object.create(Object.getPrototypeOf(e),r);if(!Object.prototype.hasOwnProperty.call(t,"__original"))try{Object.defineProperty(t,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return t},X=r(()=>{const e=L,r=e?.language;let t=e;e&&(M.current&&M.current.__original===e?R.current!==r?(t=U(e),M.current=t,R.current=r):t=M.current:(t=U(e),M.current=t,R.current=r));const n=[D,t,F];return n.t=D,n.i18n=t,n.ready=F,n},[D,L,F,L.resolvedLanguage,L.language,L.languages]);if(P&&h&&!F)throw new Promise(e=>{const r=()=>e();b.lng?u(P,b.lng,E,r):f(P,E,r)});return X};export{b as useTranslation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(e,n,a,i)=>{const o=[a,{code:n,...i||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);r(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},n={},a=(a,i,o,s)=>{r(o)&&n[o]||(r(o)&&(n[o]=new Date),e(a,i,o,s))},i=(e,n)=>()=>{if(e.isInitialized)n();else{const a=()=>{setTimeout(()=>{e.off("initialized",a)},0),n()};e.on("initialized",a)}},o=(e,n,a)=>{e.loadNamespaces(n,i(e,a))},s=(e,n,a,s)=>{if(r(a)&&(a=[a]),e.options.preload&&e.options.preload.indexOf(n)>-1)return o(e,a,s);a.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(n,i(e,s))},g=(e,n,i={})=>n.languages&&n.languages.length?n.hasLoadedNamespace(e,{lng:i.lng,precheck:(n,a)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e))return!1}}):(a(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0),r=e=>"string"==typeof e,t=e=>"object"==typeof e&&null!==e;export{g as hasLoadedNamespace,t as isObject,r as isString,s as loadLanguages,o as loadNamespaces,e as warn,a as warnOnce};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{__exports as e}from"../../../_virtual/react-is.development.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-is.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var t;function r(){return t||(t=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case n:case s:case c:case a:case l:case p:return e;default:switch(e=e&&e.$$typeof){case i:case u:case m:case y:case f:return e;default:return t}}case o:return t}}}var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");e.ContextConsumer=f,e.ContextProvider=i,e.Element=r,e.ForwardRef=u,e.Fragment=n,e.Lazy=m,e.Memo=y,e.Portal=o,e.Profiler=s,e.StrictMode=c,e.Suspense=a,e.SuspenseList=l,e.isContextConsumer=function(e){return t(e)===f},e.isContextProvider=function(e){return t(e)===i},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},e.isForwardRef=function(e){return t(e)===u},e.isFragment=function(e){return t(e)===n},e.isLazy=function(e){return t(e)===m},e.isMemo=function(e){return t(e)===y},e.isPortal=function(e){return t(e)===o},e.isProfiler=function(e){return t(e)===s},e.isStrictMode=function(e){return t(e)===c},e.isSuspense=function(e){return t(e)===a},e.isSuspenseList=function(e){return t(e)===l},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===s||e===c||e===a||e===l||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===i||e.$$typeof===f||e.$$typeof===u||e.$$typeof===S||void 0!==e.getModuleId)},e.typeOf=t}()),e}export{r as __require};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{__exports as e}from"../../../_virtual/react-is.production.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-is.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var t;function r(){if(t)return e;t=1;var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function $(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case n:case i:case f:case a:case l:case p:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case y:case c:return e;default:return t}}case o:return t}}}return e.ContextConsumer=c,e.ContextProvider=s,e.Element=r,e.ForwardRef=u,e.Fragment=n,e.Lazy=m,e.Memo=y,e.Portal=o,e.Profiler=i,e.StrictMode=f,e.Suspense=a,e.SuspenseList=l,e.isContextConsumer=function(e){return $(e)===c},e.isContextProvider=function(e){return $(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},e.isForwardRef=function(e){return $(e)===u},e.isFragment=function(e){return $(e)===n},e.isLazy=function(e){return $(e)===m},e.isMemo=function(e){return $(e)===y},e.isPortal=function(e){return $(e)===o},e.isProfiler=function(e){return $(e)===i},e.isStrictMode=function(e){return $(e)===f},e.isSuspense=function(e){return $(e)===a},e.isSuspenseList=function(e){return $(e)===l},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===f||e===a||e===l||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===S||void 0!==e.getModuleId)},e.typeOf=$,e}export{r as __require};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r}from"../../_virtual/index2.js";import{__require as e}from"./cjs/react-is.production.js";import{__require as o}from"./cjs/react-is.development.js";var s;s=r,"production"===process.env.NODE_ENV?s.exports=e():s.exports=o();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../react-is/index.js";import e,{useRef as t,useDebugValue as n,useContext as r,createElement as o}from"react";import s from"../../@emotion/stylis/dist/stylis.browser.esm.js";import i from"../../@emotion/unitless/dist/unitless.browser.esm.js";import a from"../../@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js";import c from"../../hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js";import{r as u}from"../../../_virtual/index2.js";function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},p=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!u.exports.typeOf(e)},h=Object.freeze([]),f=Object.freeze({});function m(e){return"function"==typeof e}function y(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function v(e){return e&&"string"==typeof e.styledComponentId}var g="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",w="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),b="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",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.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",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.\n\n',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\n\n",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.\n\n",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.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',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.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function E(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(E.apply(void 0,[b[e]].concat(n)).trim())}var N=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&_(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),A=new Map,C=new Map,I=1,P=function(e){if(A.has(e))return A.get(e);for(;C.has(I);)I++;var t=I++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&_(16,""+t),A.set(e,t),C.set(t,e),t},R=function(e){return C.get(e)},j=function(e,t){t>=I&&(I=t+1),A.set(e,t),C.set(t,e)},D="style["+g+'][data-styled-version="5.3.3"]',O=new RegExp("^"+g+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),T=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},x=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(O);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(j(u,c),T(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},k=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(g))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(g,"active"),r.setAttribute("data-styled-version","5.3.3");var i="undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},V=function(){function e(e){var t=this.element=k(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}_(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),z=function(){function e(e){var t=this.element=k(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),F=w,L={isServer:!w,useCSSOMInjection:!S},M=function(){function e(e,t,n){void 0===e&&(e=f),void 0===t&&(t={}),this.options=l({},L,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&w&&F&&(F=!1,function(e){for(var t=document.querySelectorAll(D),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(g)&&(x(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return P(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(l({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new B(o):r?new V(o):new z(o),new N(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(P(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(P(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(P(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=R(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=g+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach(function(e){e.length>0&&(u+=e+",")}),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),G=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Y(t%52)+n;return(Y(t%52)+n).replace(G,"$1-$2")}var $=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},H=function(e){return $(5381,e)};var U=H("5.3.3"),W=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(m(n)&&!v(n))return!1}return!0}(e),this.componentId=t,this.baseHash=$(U,t),this.baseStyle=n,M.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var s=ce(this.rules,e,t,n).join(""),i=q($(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,u=$(this.baseHash,n.hash),l="",d=0;d<c;d++){var p=this.rules[d];if("string"==typeof p)l+=p,"production"!==process.env.NODE_ENV&&(u=$(u,p+d));else if(p){var h=ce(p,e,t,n),f=Array.isArray(h)?h.join(""):h;u=$(u,f+d),l+=f}}if(l){var m=q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y)}o.push(m)}}return o.join(" ")},e}(),Z=/^\s*\/\/.*$/gm,J=[":","[",".","#"];var X=e.createContext();X.Consumer;var K=e.createContext(),Q=(K.Consumer,new M),ee=function(e){var t,n,r,o,i=void 0===e?f:e,a=i.options,c=void 0===a?f:a,u=i.plugins,l=void 0===u?h:u,d=new s(c),p=[],m=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){p.push(e)}),y=function(e,r,s){return 0===r&&-1!==J.indexOf(s[n.length])||s.match(o)?e:"."+t};function v(e,s,i,a){void 0===a&&(a="&");var c=e.replace(Z,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(i||!s?"":s,u)}return d.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,y))},m,function(e){if(-2===e){var t=p;return p=[],t}}])),v.hash=l.length?l.reduce(function(e,t){return t.name||_(15),$(e,t.name)},5381).toString():"",v}();var te=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ee);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return _(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ee),this.name+e.hash},e}(),ne=/([A-Z])/,re=/([A-Z])/g,oe=/^ms-/,se=function(e){return"-"+e.toLowerCase()};function ie(e){return ne.test(e)?e.replace(re,se).replace(oe,"-ms-"):e}var ae=function(e){return null==e||!1===e||""===e};function ce(e,t,n,r){if(Array.isArray(e)){for(var o,s=[],a=0,c=e.length;a<c;a+=1)""!==(o=ce(e[a],t,n,r))&&(Array.isArray(o)?s.push.apply(s,o):s.push(o));return s}if(ae(e))return"";if(v(e))return"."+e.styledComponentId;if(m(e)){if("function"!=typeof(d=e)||d.prototype&&d.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==process.env.NODE_ENV&&u.exports.isElement(l)&&console.warn(y(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),ce(l,t,n,r)}var d;return e instanceof te?n?(e.inject(n,r),e.getName(r)):e:p(e)?function e(t,n){var r,o,s=[];for(var a in t)t.hasOwnProperty(a)&&!ae(t[a])&&(Array.isArray(t[a])&&t[a].isCss||m(t[a])?s.push(ie(a)+":",t[a],";"):p(t[a])?s.push.apply(s,e(t[a],a)):s.push(ie(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in i?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var ue=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function le(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return m(e)||p(e)?ue(ce(d(h,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ue(ce(d(e,n)))}var de=/invalid hook call/i,pe=new Set,he=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fe=/(^-|-$)/g;function me(e){return e.replace(he,"-").replace(fe,"")}var ye=function(e){return q(H(e)>>>0)};function ve(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ge=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},we=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Se(e,t,n){var r=e[n];ge(t)&&ge(r)?be(r,t):e[n]=t}function be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ge(i))for(var a in i)we(a)&&Se(e,i[a],a)}return e}var Ee=e.createContext();Ee.Consumer;var _e={};function Ne(s,i,u){var d=v(s),p=!ve(s),g=i.attrs,w=void 0===g?h:g,S=i.componentId,b=void 0===S?function(e,t){var n="string"!=typeof e?"sc":me(e);_e[n]=(_e[n]||0)+1;var r=n+"-"+ye("5.3.3"+n+_e[n]);return t?t+"-"+r:r}(i.displayName,i.parentComponentId):S,E=i.displayName,_=void 0===E?function(e){return ve(e)?"styled."+e:"Styled("+y(e)+")"}(s):E,N=i.displayName&&i.componentId?me(i.displayName)+"-"+i.componentId:i.componentId||b,A=d&&s.attrs?Array.prototype.concat(s.attrs,w).filter(Boolean):w,C=i.shouldForwardProp;d&&s.shouldForwardProp&&(C=i.shouldForwardProp?function(e,t,n){return s.shouldForwardProp(e,t,n)&&i.shouldForwardProp(e,t,n)}:s.shouldForwardProp);var I,P=new W(u,N,d?s.componentStyle:void 0),R=P.isStatic&&0===w.length,j=function(e,t){return function(e,t,s,i){var c=e.attrs,u=e.componentStyle,d=e.defaultProps,p=e.foldedComponentIds,h=e.shouldForwardProp,y=e.styledComponentId,v=e.target;"production"!==process.env.NODE_ENV&&n(y);var g=function(e,t,n){void 0===e&&(e=f);var r=l({},t,{theme:e}),o={};return n.forEach(function(e){var t,n,s,i=e;for(t in m(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t]}),[r,o]}(function(e,t,n){return void 0===n&&(n=f),e.theme!==n.theme&&e.theme||t||n.theme}(t,r(Ee),d)||f,t,c),w=g[0],S=g[1],b=function(e,t,o,s){var i=r(X)||Q,a=r(K)||ee,c=t?e.generateAndInjectStyles(f,i,a):e.generateAndInjectStyles(o,i,a);return"production"!==process.env.NODE_ENV&&n(c),"production"!==process.env.NODE_ENV&&!t&&s&&s(c),c}(u,i,w,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),E=s,_=S.$as||t.$as||S.as||t.as||v,N=ve(_),A=S!==t?l({},t,{},S):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(h?h(I,a,_):!N||a(I))&&(C[I]=A[I]));return t.style&&S.style!==t.style&&(C.style=l({},t.style,{},S.style)),C.className=Array.prototype.concat(p,y,b!==y?b:null,t.className,S.className).filter(Boolean).join(" "),C.ref=E,o(_,C)}(I,e,t,R)};return j.displayName=_,(I=e.forwardRef(j)).attrs=A,I.componentStyle=P,I.displayName=_,I.shouldForwardProp=C,I.foldedComponentIds=d?Array.prototype.concat(s.foldedComponentIds,s.styledComponentId):h,I.styledComponentId=N,I.target=d?s.target:s,I.withComponent=function(e){var t=i.componentId,n=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(i,["componentId"]),r=t&&t+"-"+(ve(e)?e:me(y(e)));return Ne(e,l({},n,{attrs:A,componentId:r}),u)},Object.defineProperty(I,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=d?be({},s.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(function(e,n){if("production"!==process.env.NODE_ENV){var r="The component "+e+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",o=console.error;try{var s=!0;console.error=function(e){if(de.test(e))s=!1,pe.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];o.apply(void 0,[e].concat(n))}},t(),s&&!pe.has(r)&&(console.warn(r),pe.add(r))}catch(e){de.test(e.message)&&pe.delete(r)}finally{console.error=o}}}(_,N),I.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(_,N)),I.toString=function(){return"."+I.styledComponentId},p&&c(I,s,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),I}var Ae=function(e){return function e(t,n,r){if(void 0===r&&(r=f),!u.exports.isValidElementType(n))return _(1,String(n));var o=function(){return t(n,r,le.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,l({},r,{},o))},o.attrs=function(o){return e(t,n,l({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(Ne,e)};function Ce(e){"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=le.apply(void 0,[e].concat(n)).join(""),s=ye(o);return new te(s,o)}["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Ae[e]=Ae(e)}),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&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.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);export{X as StyleSheetContext,Ee as ThemeContext,le as css,Ae as default,v as isStyledComponent,Ce as keyframes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},t(r,e)};function r(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var e=function(){return e=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},e.apply(this,arguments)};function n(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]])}return e}function o(t,r,e,n){return new(e||(e=Promise))(function(o,c){function a(t){try{u(n.next(t))}catch(t){c(t)}}function l(t){try{u(n.throw(t))}catch(t){c(t)}}function u(t){var r;t.done?o(t.value):(r=t.value,r instanceof e?r:new e(function(t){t(r)})).then(a,l)}u((n=n.apply(t,r||[])).next())})}function c(t,r){var e,n,o,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(c=0)),c;)try{if(e=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return c.label++,{value:l[1],done:!1};case 5:c.label++,n=l[1],l=[0];continue;case 7:l=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){c=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){c.label=l[1];break}if(6===l[0]&&c.label<o[1]){c.label=o[1],o=l;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(l);break}o[2]&&c.ops.pop(),c.trys.pop();continue}l=r.call(t,c)}catch(t){l=[6,t],n=0}finally{e=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function a(t,r,e){if(e||2===arguments.length)for(var n,o=0,c=r.length;o<c;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return t.concat(n||Array.prototype.slice.call(r))}function l(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}"function"==typeof SuppressedError&&SuppressedError;export{e as __assign,o as __awaiter,r as __extends,c as __generator,l as __makeTemplateObject,n as __rest,a as __spreadArray};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{__exports as e}from"../../../_virtual/use-sync-external-store-shim.development.js";import t from"react";
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* use-sync-external-store-shim.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var n;function r(){return n||(n=1,"production"!==process.env.NODE_ENV&&function(){function n(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=t,o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=r.useState,a=r.useEffect,i=r.useLayoutEffect,s=r.useDebugValue,_=!1,c=!1,O="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){_||void 0===r.startTransition||(_=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var O=t();if(!c){var l=t();o(O,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var f=(l=u({inst:{value:O,getSnapshot:t}}))[0].inst,d=l[1];return i(function(){f.value=O,f.getSnapshot=t,n(f)&&d({inst:f})},[e,O,t]),a(function(){return n(f)&&d({inst:f}),e(function(){n(f)&&d({inst:f})})},[e]),s(O),O};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:O,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),e}export{r as __require};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{__exports as t}from"../../../_virtual/use-sync-external-store-shim.production.js";import e from"react";
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* use-sync-external-store-shim.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var n;function r(){if(n)return t;n=1;var r=e;var u="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useState,i=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!u(t,n)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),u=r[0].inst,f=r[1];return a(function(){u.value=n,u.getSnapshot=e,c(u)&&f({inst:u})},[t,n,e]),i(function(){return c(u)&&f({inst:u}),t(function(){c(u)&&f({inst:u})})},[t]),s(n),n};return t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f,t}export{r as __require};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as r}from"../../../_virtual/index.js";import{__require as s}from"../cjs/use-sync-external-store-shim.production.js";import{__require as e}from"../cjs/use-sync-external-store-shim.development.js";var o;o=r,"production"===process.env.NODE_ENV?o.exports=s():o.exports=e();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(n){if("string"==typeof n){var e=unescape(encodeURIComponent(n));n=new Uint8Array(e.length);for(var c=0;c<e.length;++c)n[c]=e.charCodeAt(c)}return function(n){for(var r=[],t=32*n.length,e="0123456789abcdef",u=0;u<t;u+=8){var o=n[u>>5]>>>u%32&255,f=parseInt(e.charAt(o>>>4&15)+e.charAt(15&o),16);r.push(f)}return r}(function(n,e){n[e>>5]|=128<<e%32,n[r(e)-1]=e;for(var c=1732584193,i=-271733879,h=-1732584194,v=271733878,g=0;g<n.length;g+=16){var l=c,p=i,s=h,A=v;c=u(c,i,h,v,n[g],7,-680876936),v=u(v,c,i,h,n[g+1],12,-389564586),h=u(h,v,c,i,n[g+2],17,606105819),i=u(i,h,v,c,n[g+3],22,-1044525330),c=u(c,i,h,v,n[g+4],7,-176418897),v=u(v,c,i,h,n[g+5],12,1200080426),h=u(h,v,c,i,n[g+6],17,-1473231341),i=u(i,h,v,c,n[g+7],22,-45705983),c=u(c,i,h,v,n[g+8],7,1770035416),v=u(v,c,i,h,n[g+9],12,-1958414417),h=u(h,v,c,i,n[g+10],17,-42063),i=u(i,h,v,c,n[g+11],22,-1990404162),c=u(c,i,h,v,n[g+12],7,1804603682),v=u(v,c,i,h,n[g+13],12,-40341101),h=u(h,v,c,i,n[g+14],17,-1502002290),c=o(c,i=u(i,h,v,c,n[g+15],22,1236535329),h,v,n[g+1],5,-165796510),v=o(v,c,i,h,n[g+6],9,-1069501632),h=o(h,v,c,i,n[g+11],14,643717713),i=o(i,h,v,c,n[g],20,-373897302),c=o(c,i,h,v,n[g+5],5,-701558691),v=o(v,c,i,h,n[g+10],9,38016083),h=o(h,v,c,i,n[g+15],14,-660478335),i=o(i,h,v,c,n[g+4],20,-405537848),c=o(c,i,h,v,n[g+9],5,568446438),v=o(v,c,i,h,n[g+14],9,-1019803690),h=o(h,v,c,i,n[g+3],14,-187363961),i=o(i,h,v,c,n[g+8],20,1163531501),c=o(c,i,h,v,n[g+13],5,-1444681467),v=o(v,c,i,h,n[g+2],9,-51403784),h=o(h,v,c,i,n[g+7],14,1735328473),c=f(c,i=o(i,h,v,c,n[g+12],20,-1926607734),h,v,n[g+5],4,-378558),v=f(v,c,i,h,n[g+8],11,-2022574463),h=f(h,v,c,i,n[g+11],16,1839030562),i=f(i,h,v,c,n[g+14],23,-35309556),c=f(c,i,h,v,n[g+1],4,-1530992060),v=f(v,c,i,h,n[g+4],11,1272893353),h=f(h,v,c,i,n[g+7],16,-155497632),i=f(i,h,v,c,n[g+10],23,-1094730640),c=f(c,i,h,v,n[g+13],4,681279174),v=f(v,c,i,h,n[g],11,-358537222),h=f(h,v,c,i,n[g+3],16,-722521979),i=f(i,h,v,c,n[g+6],23,76029189),c=f(c,i,h,v,n[g+9],4,-640364487),v=f(v,c,i,h,n[g+12],11,-421815835),h=f(h,v,c,i,n[g+15],16,530742520),c=a(c,i=f(i,h,v,c,n[g+2],23,-995338651),h,v,n[g],6,-198630844),v=a(v,c,i,h,n[g+7],10,1126891415),h=a(h,v,c,i,n[g+14],15,-1416354905),i=a(i,h,v,c,n[g+5],21,-57434055),c=a(c,i,h,v,n[g+12],6,1700485571),v=a(v,c,i,h,n[g+3],10,-1894986606),h=a(h,v,c,i,n[g+10],15,-1051523),i=a(i,h,v,c,n[g+1],21,-2054922799),c=a(c,i,h,v,n[g+8],6,1873313359),v=a(v,c,i,h,n[g+15],10,-30611744),h=a(h,v,c,i,n[g+6],15,-1560198380),i=a(i,h,v,c,n[g+13],21,1309151649),c=a(c,i,h,v,n[g+4],6,-145523070),v=a(v,c,i,h,n[g+11],10,-1120210379),h=a(h,v,c,i,n[g+2],15,718787259),i=a(i,h,v,c,n[g+9],21,-343485551),c=t(c,l),i=t(i,p),h=t(h,s),v=t(v,A)}return[c,i,h,v]}(function(n){if(0===n.length)return[];for(var t=8*n.length,e=new Uint32Array(r(t)),u=0;u<t;u+=8)e[u>>5]|=(255&n[u/8])<<u%32;return e}(n),8*n.length))}function r(n){return 14+(n+64>>>9<<4)+1}function t(n,r){var t=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(t>>16)<<16|65535&t}function e(n,r,e,u,o,f){return t((a=t(t(r,n),t(u,f)))<<(c=o)|a>>>32-c,e);var a,c}function u(n,r,t,u,o,f,a){return e(r&t|~r&u,n,r,o,f,a)}function o(n,r,t,u,o,f,a){return e(r&u|t&~u,n,r,o,f,a)}function f(n,r,t,u,o,f,a){return e(r^t^u,n,r,o,f,a)}function a(n,r,t,u,o,f,a){return e(t^(r|~u),n,r,o,f,a)}export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"./validate.js";function e(e){if(!r(e))throw TypeError("Invalid UUID");var t,a=new Uint8Array(16);return a[0]=(t=parseInt(e.slice(0,8),16))>>>24,a[1]=t>>>16&255,a[2]=t>>>8&255,a[3]=255&t,a[4]=(t=parseInt(e.slice(9,13),16))>>>8,a[5]=255&t,a[6]=(t=parseInt(e.slice(14,18),16))>>>8,a[7]=255&t,a[8]=(t=parseInt(e.slice(19,23),16))>>>8,a[9]=255&t,a[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=t/4294967296&255,a[12]=t>>>24&255,a[13]=t>>>16&255,a[14]=t>>>8&255,a[15]=255&t,a}export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e=new Uint8Array(16);function o(){if(!t&&!(t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(e)}export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(r,e,a,t){switch(r){case 0:return e&a^~e&t;case 1:case 3:return e^a^t;case 2:return e&a^e&t^a&t}}function e(r,e){return r<<e|r>>>32-e}function a(a){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof a){var o=unescape(encodeURIComponent(a));a=[];for(var f=0;f<o.length;++f)a.push(o.charCodeAt(f))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);for(var c=a.length/4+2,s=Math.ceil(c/16),h=new Array(s),l=0;l<s;++l){for(var u=new Uint32Array(16),i=0;i<16;++i)u[i]=a[64*l+4*i]<<24|a[64*l+4*i+1]<<16|a[64*l+4*i+2]<<8|a[64*l+4*i+3];h[l]=u}h[s-1][14]=8*(a.length-1)/Math.pow(2,32),h[s-1][14]=Math.floor(h[s-1][14]),h[s-1][15]=8*(a.length-1)&4294967295;for(var v=0;v<s;++v){for(var p=new Uint32Array(80),y=0;y<16;++y)p[y]=h[v][y];for(var A=16;A<80;++A)p[A]=e(p[A-3]^p[A-8]^p[A-14]^p[A-16],1);for(var g=n[0],w=n[1],M=n[2],d=n[3],U=n[4],C=0;C<80;++C){var m=Math.floor(C/20),x=e(g,5)+r(m,w,M,d)+U+t[m]+p[C]>>>0;U=d,d=M,M=e(w,30)>>>0,w=g,g=x}n[0]=n[0]+g>>>0,n[1]=n[1]+w>>>0,n[2]=n[2]+M>>>0,n[3]=n[3]+d>>>0,n[4]=n[4]+U>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"./validate.js";for(var t=[],i=0;i<256;++i)t.push((i+256).toString(16).substr(1));function o(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(t[i[o+0]]+t[i[o+1]]+t[i[o+2]]+t[i[o+3]]+"-"+t[i[o+4]]+t[i[o+5]]+"-"+t[i[o+6]]+t[i[o+7]]+"-"+t[i[o+8]]+t[i[o+9]]+"-"+t[i[o+10]]+t[i[o+11]]+t[i[o+12]]+t[i[o+13]]+t[i[o+14]]+t[i[o+15]]).toLowerCase();if(!r(e))throw TypeError("Stringified UUID is invalid");return e}export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import m from"./v35.js";import o from"./md5.js";m("v3",48,o);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"./stringify.js";import e from"./parse.js";var t="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function a(a,o,f){function i(t,n,a,i){if("string"==typeof t&&(t=function(r){r=unescape(encodeURIComponent(r));for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}(t)),"string"==typeof n&&(n=e(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+t.length);if(s.set(n),s.set(t,n.length),(s=f(s))[6]=15&s[6]|o,s[8]=63&s[8]|128,a){i=i||0;for(var c=0;c<16;++c)a[i+c]=s[c];return a}return r(s)}try{i.name=a}catch(r){}return i.DNS=t,i.URL=n,i}export{t as DNS,n as URL,a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"./rng.js";import n from"./stringify.js";function o(o,t,f){var i=(o=o||{}).random||(o.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){f=f||0;for(var a=0;a<16;++a)t[f+a]=i[a];return t}return n(i)}export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import m from"./v35.js";import o from"./sha1.js";m("v5",80,o);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"./regex.js";function e(e){return"string"==typeof e&&t.test(e)}export{e as default};
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./models/loyalty-widget";
|
|
2
|
+
export * from "./models/loyalty-widget/types";
|
|
3
|
+
export * from "./models/loyalty-widget/header";
|
|
4
|
+
export * from "./models/loyalty-widget/header/header-background";
|
|
5
|
+
export * from "./models/image";
|
|
6
|
+
export * from "./models/button";
|
|
7
|
+
export * from "./models/loyalty-widget/settings";
|
|
8
|
+
export * from "./models";
|
|
9
|
+
export * from "./models";
|
|
10
|
+
export * from "./models/types";
|
|
11
|
+
export * from "./assets";
|
|
12
|
+
export { default as LoyaltyWidgetRenderer } from "./renderer";
|
package/build/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{LoyaltyWidget}from"./models/loyalty-widget/index.js";export{BadgeIconTypeEnum,HeaderBackgroundTypeEnum,ImageTypeEnum,LoyaltyWidgetLayoutTypeEnum,WidgetIconTypeEnum,WidgetPositionEnum}from"./models/loyalty-widget/types/index.js";export{LoyaltyWidgetHeader}from"./models/loyalty-widget/header/index.js";export{LoyaltyWidgetHeaderBackground}from"./models/loyalty-widget/header/header-background/index.js";export{IMAGE_SIZE,LoyaltyWidgetImage}from"./models/image/index.js";export{LoyaltyWidgetButton}from"./models/button/index.js";export{LoyaltyWidgetSettings}from"./models/loyalty-widget/settings/index.js";export{LoyaltyWidgetViewModel}from"./models/index.js";export{EarningMethodTypeEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramPeriod,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,LoyaltyWidgetScreenTypeEnum,PeriodTypeEnum}from"./models/types/index.js";export{BadgeLevel1}from"./assets/badgeLevel1.js";export{BadgeLevel2}from"./assets/badgeLevel2.js";export{BadgeLevel3}from"./assets/badgeLevel3.js";export{BadgeLevel4}from"./assets/badgeLevel4.js";export{XClose}from"./assets/icons/x-close.js";export{CheckCircleFill}from"./assets/icons/check-circle-fill.js";export{ChevronLeft}from"./assets/icons/chevron-left.js";export{Check}from"./assets/icons/check.js";export{BubbleChatDone}from"./assets/widget-icons/normal/bubbleChatDone.js";export{CommentAdd01}from"./assets/widget-icons/normal/commentAdd01.js";export{CouponPercent}from"./assets/widget-icons/normal/couponPercent.js";export{DiscountTag02}from"./assets/widget-icons/normal/discountTag02.js";export{Gift}from"./assets/widget-icons/normal/gift.js";export{MoneyAdd01}from"./assets/widget-icons/normal/moneyAdd01.js";export{PackageDelivered}from"./assets/widget-icons/normal/packageDelivered.js";export{SaveMoneyDollar}from"./assets/widget-icons/normal/saveMoneyDollar.js";export{ShoppingBasketAdd02}from"./assets/widget-icons/normal/shoppingBasketAdd02.js";export{UserAdd01}from"./assets/widget-icons/normal/userAdd01.js";export{UsersIllustration}from"./assets/widget-icons/illustraions/usersIllustration.js";export{BubbleChatIllustration}from"./assets/widget-icons/illustraions/bubbleChatIllustration.js";export{ApprovedChatIllustration}from"./assets/widget-icons/illustraions/approvedChatIllustration.js";export{TshirtIllustration}from"./assets/widget-icons/illustraions/tshirtIllustration.js";export{Medal}from"./assets/widget-icons/illustraions/medal.js";export{GiftIllustration}from"./assets/widget-icons/illustraions/giftIllustration.js";export{ShippingBox}from"./assets/widget-icons/illustraions/shippingBox.js";export{BigSaleMedal}from"./assets/widget-icons/illustraions/bigSaleMedal.js";export{ShoppingCartIllustration}from"./assets/widget-icons/illustraions/shoppingCartIllustration.js";export{default as LoyaltyWidgetRenderer}from"./renderer/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeObservable as o,observable as s}from"mobx";import'./../ext/uuid/dist/esm-browser/stringify.js';import'./../ext/uuid/dist/esm-browser/v3.js';import i from'./../ext/uuid/dist/esm-browser/v4.js';import'./../ext/uuid/dist/esm-browser/v5.js';var d=function(d){void 0===d&&(d={}),this.id=d.id||i(),o(this,{id:s})};export{d as BaseModel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeObservable as o,observable as l}from"mobx";var r=function(r){var t,i,u,n;void 0===r&&(r={}),this.buttonRadius=null!==(t=r.buttonRadius)&&void 0!==t?t:0,this.bgColor=null!==(i=r.bgColor)&&void 0!==i?i:null,this.textColor=null!==(u=r.textColor)&&void 0!==u?u:null,this.borderColor=null!==(n=r.borderColor)&&void 0!==n?n:null,o(this,{buttonRadius:l,bgColor:l,textColor:l,borderColor:l})};export{r as LoyaltyWidgetButton};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from "models/base";
|
|
2
|
+
import { ImageTypeEnum } from "models/loyalty-widget/types";
|
|
3
|
+
export declare const IMAGE_SIZE = 1080;
|
|
4
|
+
export declare class LoyaltyWidgetImage extends BaseModel {
|
|
5
|
+
link: string | null;
|
|
6
|
+
cdnURL: string | null;
|
|
7
|
+
merchantId: string | null;
|
|
8
|
+
imageId: string | null;
|
|
9
|
+
type: ImageTypeEnum;
|
|
10
|
+
constructor(data: Partial<LoyaltyWidgetImage>);
|
|
11
|
+
get src(): string | undefined;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__extends as t}from'./../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as e,observable as n,computed as i}from"mobx";import{BaseModel as r}from"../base.js";import{ImageTypeEnum as c}from"../loyalty-widget/types/index.js";var o=1080,m=function(r){function o(t){var o=r.call(this,t)||this;return o.imageId=t.imageId||null,o.link=t.link||null,o.cdnURL=t.cdnURL||null,o.merchantId=t.merchantId||null,o.type=t.type||c.SHOW,e(o,{imageId:n,link:n,cdnURL:n,merchantId:n,type:n,src:i}),o}return t(o,r),Object.defineProperty(o.prototype,"src",{get:function(){if(this.imageId)return"".concat(this.cdnURL,"images/").concat(this.merchantId,"/").concat(this.imageId,"/image_").concat(1080,".jpeg")},enumerable:!1,configurable:!0}),o}(r);export{o as IMAGE_SIZE,m as LoyaltyWidgetImage};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LoyaltyWidget } from "./loyalty-widget";
|
|
2
|
+
import { LoyaltyWidgetCallbacks, LoyaltyWidgetScreenTypeEnum, Category, Product, Brand, Tag, LoyaltyProgramTier } from "./types";
|
|
3
|
+
import { LoyaltyProgramSpendingMethod } from "./loyalty-program-spending-method";
|
|
4
|
+
import { LoyaltyProgramEarningMethod } from "./loyalty-program-earning-method";
|
|
5
|
+
import { LoyaltyCustomerInfo } from "./loyalty-customer-info";
|
|
6
|
+
import { LoyaltyProgramPointHistory } from "./loyalty-program-point-history";
|
|
7
|
+
export declare class LoyaltyWidgetViewModel {
|
|
8
|
+
selectedScreen: LoyaltyWidgetScreenTypeEnum;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
loyaltyWidget: LoyaltyWidget;
|
|
11
|
+
cartId?: string | null;
|
|
12
|
+
cdnURL: string;
|
|
13
|
+
merchantId: string;
|
|
14
|
+
storeUrl: string;
|
|
15
|
+
currency: string;
|
|
16
|
+
locale: string;
|
|
17
|
+
user: LoyaltyCustomerInfo | null;
|
|
18
|
+
categories: Category[] | null;
|
|
19
|
+
products: Product[];
|
|
20
|
+
brands: Brand[];
|
|
21
|
+
tags: Tag[];
|
|
22
|
+
earningMethods: LoyaltyProgramEarningMethod[];
|
|
23
|
+
spendingMethods: LoyaltyProgramSpendingMethod[];
|
|
24
|
+
tiers: LoyaltyProgramTier[];
|
|
25
|
+
pointHistory: LoyaltyProgramPointHistory[];
|
|
26
|
+
callbacks?: LoyaltyWidgetCallbacks;
|
|
27
|
+
constructor(data: Partial<LoyaltyWidgetViewModel> | undefined, cdnURL: string, merchantId: string, currency: string, locale: string, callbacks?: LoyaltyWidgetCallbacks);
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeObservable as t,observable as e}from"mobx";import{LoyaltyWidget as s}from"./loyalty-widget/index.js";import{LoyaltyWidgetScreenTypeEnum as i}from"./types/index.js";import{LoyaltyProgramSpendingMethod as r}from"./loyalty-program-spending-method/index.js";import{LoyaltyProgramEarningMethod as o}from"./loyalty-program-earning-method/index.js";import{LoyaltyCustomerInfo as n}from"./loyalty-customer-info/index.js";var d=function(d,a,c,h,l,g){void 0===d&&(d={}),this.selectedScreen=d.selectedScreen||i.MAIN_SCREEN,this.isLoading=d.isLoading||!1,this.loyaltyWidget=d.loyaltyWidget?new s(d.loyaltyWidget):new s,this.cdnURL=a,this.merchantId=c,this.storeUrl=d.storeUrl||"",this.currency=h,this.locale=l,this.cartId=d.cartId||null,this.user=d.user?new n(d.user):null,this.earningMethods=d.earningMethods?d.earningMethods.map(function(t){return new o(t)}):[],this.spendingMethods=d.spendingMethods?d.spendingMethods.map(function(t){return new r(t)}):[],this.tiers=d.tiers?d.tiers:[],this.categories=d.categories?d.categories:[],this.products=d.products?d.products:[],this.brands=d.brands?d.brands:[],this.tags=d.tags?d.tags:[],this.pointHistory=d.pointHistory?d.pointHistory:[],this.callbacks=g||void 0,t(this,{cartId:e,loyaltyWidget:e,isLoading:e,cdnURL:e,merchantId:e,storeUrl:e,currency:e,locale:e,selectedScreen:e,user:e,earningMethods:e,spendingMethods:e,tiers:e,categories:e,products:e,brands:e,tags:e,pointHistory:e})};export{d as LoyaltyWidgetViewModel};
|