1/*! For license information please see 2841-d3f88686877cab87166e.js.LICENSE.txt */ 2(self.webpackChunkrenewal_policy=self.webpackChunkrenewal_policy||[]).push([[2841],{2841:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return ar}});var n=r(96540),a=r(86462),o=r(69067),s=r(97834),i=r(8239),l=r(60538),c=r(98587),u=r(58168),h=r(34164),p=r(75659),g=r(771),d=r(55860),f=r(20561),m=r(74848),y=(0,f.A)((0,m.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),x=(0,f.A)((0,m.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),v=(0,f.A)((0,m.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),C=r(28466),b=r(25669),L=r(11848),k=r(39770),w=r(38413),S=r(31609);function _(e){return(0,S.Ay)("MuiCheckbox",e)}var R=(0,w.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const E=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],O=(0,L.Ay)(d.A,{shouldForwardProp:e=>(0,k.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,C.A)(r.size)}`],"default"!==r.color&&t[`color${(0,C.A)(r.color)}`]]}})(({theme:e,ownerState:t})=>(0,u.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,g.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${R.checked}, &.${R.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${R.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),N=(0,m.jsx)(x,{}),A=(0,m.jsx)(y,{}),P=(0,m.jsx)(v,{});var H=n.forwardRef(function(e,t){var r,a;const o=(0,b.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=N,color:i="primary",icon:l=A,indeterminate:g=!1,indeterminateIcon:d=P,inputProps:f,size:y="medium",className:x}=o,v=(0,c.A)(o,E),L=g?d:l,k=g?d:s,w=(0,u.A)({},o,{color:i,indeterminate:g,size:y}),S=(e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${(0,C.A)(n)}`,`size${(0,C.A)(a)}`]},s=(0,p.A)(o,_,t);return(0,u.A)({},t,s)})(w);return(0,m.jsx)(O,(0,u.A)({type:"checkbox",inputProps:(0,u.A)({"data-indeterminate":g},f),icon:n.cloneElement(L,{fontSize:null!=(r=L.props.fontSize)?r:y}),checkedIcon:n.cloneElement(k,{fontSize:null!=(a=k.props.fontSize)?a:y}),ownerState:w,ref:t,className:(0,h.A)(S.root,x)},v,{classes:S}))}),I=r(14073),M=r(99571),F=r(26781),j=r(96703),T=r(86990),V=r(54506),D=r(76544);var $=n.createContext(null);function W(){return n.useContext($)}var B="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var Z=function(e){const{children:t,theme:r}=e,a=W(),o=n.useMemo(()=>{const e=null===a?r:function(e,t){if("function"==typeof t)return t(e);return(0,u.A)({},e,t)}(a,r);return null!=e&&(e[B]=null!==a),e},[r,a]);return(0,m.jsx)($.Provider,{value:o,children:t})},z=r(28221),Y=r(53951),X=r(73788),U=r(72221),K=r(21529),q=r(34661),Q=r(32967);const J={};function G(e,t,r,a=!1){return n.useMemo(()=>{const n=e&&t[e]||t;if("function"==typeof r){const o=r(n),s=e?(0,u.A)({},t,{[e]:o}):o;return a?()=>s:s}return e?(0,u.A)({},t,{[e]:r}):(0,u.A)({},t,r)},[e,t,r,a])}var ee=function(e){const{children:t,theme:r,themeId:n}=e,a=(0,Y.A)(J),o=W()||J,s=G(n,a,r),i=G(n,o,r,!0),l="rtl"===s.direction,c=function(e){const t=(0,Y.A)(),r=(0,q.A)()||"",{modularCssLayers:n}=e;let a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return a=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,a):`@layer ${a};`:"",(0,K.A)(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(a){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const o=document.createElement("style");o.setAttribute("data-mui-layer-order",r),o.textContent=a,e.prepend(o)}else{var o;null==(o=e.querySelector(`style[data-mui-layer-order="${r}"]`))||o.remove()}},[a,r]),a?(0,m.jsx)(Q.A,{styles:a}):null}(s);return(0,m.jsx)(Z,{theme:i,children:(0,m.jsx)(z.T.Provider,{value:s,children:(0,m.jsx)(X.A,{value:l,children:(0,m.jsxs)(U.A,{value:null==s?void 0:s.components,children:[c,t]})})})})},te=r(58312);const re=["theme"];function ne(e){let{theme:t}=e,r=(0,c.A)(e,re);const n=t[te.A];let a=n||t;return"function"!=typeof t&&(n&&!n.vars?a=(0,u.A)({},n,{vars:null}):t&&!t.vars&&(a=(0,u.A)({},t,{vars:null}))),(0,m.jsx)(ee,(0,u.A)({},r,{themeId:n?te.A:void 0,theme:a}))}var ae=r(5327);const oe=(e,t)=>(0,u.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),se=e=>(0,u.A)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});var ie=function(e){const t=(0,b.b)({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:a=!1}=t;return(0,m.jsxs)(n.Fragment,{children:[(0,m.jsx)(ae.A,{styles:e=>((e,t=!1)=>{var r;const n={};
2t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{var a;n[e.getColorSchemeSelector(t).replace(/\s*&/,"")]={colorScheme:null==(a=r.palette)?void 0:a.mode}});let a=(0,u.A)({html:oe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,u.A)({margin:0},se(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=null==(r=e.components)||null==(r=r.MuiCssBaseline)?void 0:r.styleOverrides;return o&&(a=[a,o]),a})(e,a)}),r]})},le=r(15849);const ce=e=>"string"==typeof e,ue=()=>{let e,t;const r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},he=e=>null==e?"":""+e,pe=/###/g,ge=e=>e&&e.indexOf("###")>-1?e.replace(pe,"."):e,de=e=>!e||ce(e),fe=(e,t,r)=>{const n=ce(t)?t.split("."):t;let a=0;for(;a<n.length-1;){if(de(e))return{};const t=ge(n[a]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return de(e)?{}:{obj:e,k:ge(n[a])}},me=(e,t,r)=>{const{obj:n,k:a}=fe(e,t,Object);if(void 0!==n||1===t.length)return void(n[a]=r);let o=t[t.length-1],s=t.slice(0,t.length-1),i=fe(e,s,Object);for(;void 0===i.obj&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),i=fe(e,s,Object),i?.obj&&void 0!==i.obj[`${i.k}.${o}`]&&(i.obj=void 0);i.obj[`${i.k}.${o}`]=r},ye=(e,t)=>{const{obj:r,k:n}=fe(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},xe=(e,t,r)=>{for(const n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?ce(e[n])||e[n]instanceof String||ce(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):xe(e[n],t[n],r):e[n]=t[n]);return e},ve=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ce={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const be=e=>ce(e)?e.replace(/[&<>"'\/]/g,e=>Ce[e]):e;const Le=[" ",",","?","!",";"],ke=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 r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),we=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const n=t.split(r);let a=e;for(let o=0;o<n.length;){if(!a||"object"!=typeof a)return;let e,t="";for(let s=o;s<n.length;++s)if(s!==o&&(t+=r),t+=n[s],e=a[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<n.length-1)continue;o+=s-o+1;break}a=e}return a},Se=e=>e?.replace(/_/g,"-"),_e={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 Re{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||_e,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(e,t,r,n){return n&&!this.debug?null:(ce(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Re(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Re(this.logger,e)}}var Ee=new Re;class Oe{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+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,r])=>{for(let n=0;n<r;n++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([r,n])=>{for(let a=0;a<n;a++)r.apply(r,[e,...t])})}}}class Ne extends Oe{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(e,t,r,n={}){const a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],r&&(Array.isArray(r)?s.push(...r):ce(r)&&a?s.push(...r.split(a)):s.push(r)));const i=ye(this.data,s);return!i&&!t&&!r&&e.indexOf(".")>-1&&(e=s[0],t=s[1],r=s.slice(2).join(".")),!i&&o&&ce(r)?we(this.data?.[e]?.[t],r,a):i}addResource(e,t,r,n,a={silent:!1}){const o=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator;let s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),me(this.data,s,n),a.silent||this.emit
2("added",e,t,r,n)}addResources(e,t,r,n={silent:!1}){for(const a in r)(ce(r[a])||Array.isArray(r[a]))&&this.addResource(e,t,a,r[a],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,a,o={silent:!1,skipCopy:!1}){let s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=r,r=t,t=s[1]),this.addNamespaces(t);let i=ye(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?xe(i,r,a):i={...i,...r},me(this.data,s,i),o.silent||this.emit("added",e,t,r)}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 Ae={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,a)??t}),t}};const Pe=Symbol("i18next/PATH_KEY");function He(e,t){const{[Pe]:r}=e(function(){const e=[],t=Object.create(null);let r;return t.get=(n,a)=>(r?.revoke?.(),a===Pe?e:(e.push(a),r=Proxy.revocable(n,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),n=t?.keySeparator??".",a=t?.nsSeparator??":";if(r.length>1&&a){const e=t?.ns,o=Array.isArray(e)?e:null;if(o&&o.length>1&&o.slice(1).includes(r[0]))return`${r[0]}${a}${r.slice(1).join(n)}`}return r.join(n)}const Ie={},Me=e=>!ce(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Fe extends Oe{constructor(e,t={}){super(),((e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Ee.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};if(null==e)return!1;const n=this.resolve(e,r);if(void 0===n?.res)return!1;const a=Me(n.res);return!1!==r.returnObjects||!a}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let a=t.ns||this.options.defaultNS||[];const o=r&&e.indexOf(r)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=Le.filter(e=>t.indexOf(e)<0&&r.indexOf(e)<0);if(0===n.length)return!0;const a=ke.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!a.test(e);if(!o){const t=e.indexOf(r);t>0&&!a.test(e.substring(0,t))&&(o=!0)}return o})(e,r,n));if(o&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:ce(a)?[a]:a};const o=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(o[0])>-1)&&(a=o.shift()),e=o.join(n)}return{key:e,namespaces:ce(a)?[a]:a}}translate(e,t,r){let n="object"==typeof t?{...t}:t;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";"function"==typeof e&&(e=He(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?He(e,{...this.options,...n}):String(e));const a=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:s,namespaces:i}=this.extractFromKey(e[e.length-1],n),l=i[i.length-1];let c=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const u=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return h?a?{res:`${l}${c}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${c}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s;const p=this.resolve(e,n);let g=p?.res;const d=p?.usedKey||s,f=p?.exactUsedKey||s,m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,x=void 0!==n.count&&!ce(n.count),v=Fe.hasDefaultValue(n),C=x?this.pluralResolver.getSuffix(u,n.count,n):"",b=n.ordinal&&x?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",L=x&&!n.ordinal&&0===n.count,k=L&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${C}`]||n[`defaultValue${b}`]||n.defaultValue;let w=g;y&&!g&&v&&(w=k);const S=Me(w),_=Object.prototype.toString.apply(w);if(!(y&&w&&S&&["[object Number]","[object Function]","[object RegExp]"].indexOf(_)<0)||ce(m)&&Array.isArray(w))if(y&&ce(m)&&Array.isArray(g))g=g.join(m),g&&(g=this.extendTranslation(g,e,n,r));else{let t=!1,a=!1;!this.isValidLookup(g)&&v&&(t=!0,g=k),this.isValidLookup(g)||(a=!0,g=s);const i=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:g,h=v&&k!==g&&this.options.updateMissing;if(a||t||h){if(this.logger.log(h?"updateKey":"missingKey",u,l,s,h?k:g),o){const e=this.resolve(s,{...n,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,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);const r=(e,t,r)=>{const a=v&&r!==g?r:i;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,a,h,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,a,h,n),this.emit
vendor: 3,346 bytes, line 2
2("missingKey",e,l,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,n);L&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],s+t,n[`defaultValue${t}`]||k)})}):r(e,s,k))}g=this.extendTranslation(g,e,n,p,r),a&&g===s&&this.options.appendNamespaceToMissingKey&&(g=`${l}${c}${s}`),(a||t)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${s}`:s,t?g:void 0,n))}else{if(!n.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(d,w,{...n,ns:i}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(n),p):e}if(o){const e=Array.isArray(w),t=e?[]:{},r=e?f:d;for(const a in w)if(Object.prototype.hasOwnProperty.call(w,a)){const e=`${r}${o}${a}`;t[a]=v&&!g?this.translate(e,{...n,defaultValue:Me(k)?k[a]:void 0,joinArrays:!1,ns:i}):this.translate(e,{...n,joinArrays:!1,ns:i}),t[a]===e&&(t[a]=w[a])}g=t}}return a?(p.res=g,p.usedParams=this.getUsedParamsDetails(n),p):g}extendTranslation(e,t,r,n,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const o=ce(e)&&(void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(o){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let i=r.replace&&!ce(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),e=this.interpolator.interpolate(e,i,r.lng||this.language||n.usedLng,r),o){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>a?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,s=ce(o)?[o]:o;return null!=e&&s?.length&&!1!==r.applyPostProcessor&&(e=Ae.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,n,a,o,s;return ce(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?He(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(r))return;const i=this.extractFromKey(e,t),l=i.key;n=l;let c=i.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!ce(t.count),h=u&&!t.ordinal&&0===t.count,p=void 0!==t.context&&(ce(t.context)||"number"==typeof t.context)&&""!==t.context,g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);
vendor: 26,711 bytes, line 2
2c.forEach(e=>{this.isValidLookup(r)||(s=e,Ie[`${g[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(s)||(Ie[`${g[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${g.join(", ")}" won't get resolved as namespace "${s}" 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!!!")),g.forEach(n=>{if(this.isValidLookup(r))return;o=n;const s=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,n,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(n,t.count,t));const r=`${this.options.pluralSeparator}zero`,a=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&0===e.indexOf(a)&&s.push(l+e.replace(a,this.options.pluralSeparator)),s.push(l+e),h&&s.push(l+r)),p){const n=`${l}${this.options.contextSeparator||"_"}${t.context}`;s.push(n),u&&(t.ordinal&&0===e.indexOf(a)&&s.push(n+e.replace(a,this.options.pluralSeparator)),s.push(n+e),h&&s.push(n+r))}}let i;for(;i=s.pop();)this.isValidLookup(r)||(a=i,r=this.getResource(n,e,i,t))}))})}),{res:r,usedKey:n,exactUsedKey:a,usedLng:o,usedNS:s}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!ce(e.replace);let n=r?e.replace:e;if(r&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const e of t)delete n[e]}return n}static hasDefaultValue(e){const t="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,12)&&void 0!==e[r])return!0;return!1}}class je{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ee.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Se(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=Se(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(ce(e)&&e.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(e)[0]}catch(t){}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}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 r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),ce(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),n=[],a=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return ce(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):ce(e)&&a(this.formatLanguageCode(e)),r.forEach(e=>{n.indexOf(e)<0&&a(this.formatLanguageCode(e))}),n}}const Te={zero:0,one:1,two:2,few:3,many:4,other:5},Ve={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class De{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Ee.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=Se("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:n});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let o;try{o=new Intl.PluralRules(r,{type:n})}catch(s){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Ve;if(!e.match(/-|_/))return Ve;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[a]=o,o}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((e,t)=>Te[e]-Te[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){const n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}const $e=(e,t,r,n=".",a=!0)=>{let o=((e,t,r)=>{const n=ye(e,r);return void 0!==n?n:ye(t,r)})(e,t,r);return!o&&a&&ce(r)&&(o=we(e,r,n),void 0===o&&(o=we(t,r,n))),o},We=e=>e.replace(/\$/g,"$$$$");class Be{constructor(e={}){this.logger=Ee.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:r,useRawValueToEscape:n,prefix:a,prefixEscaped:o,suffix:s,suffixEscaped:i,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:g,nestingSuffixEscaped:d,nestingOptionsSeparator:f,maxReplaces:m,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:be,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=a?ve(a):o||"{{",this.suffix=s?ve(s):i||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=h?ve(h):p||ve("$t("),this.nestingSuffix=g?ve(g):d||ve(")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,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(e,t,r,n){let a,o,s;const i=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const a=$e(t,i,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(a,void 0,r,{...n,...t,interpolationkey:e}):a}const a=e.split(this.formatSeparator),o=a.shift().trim(),s=a.join(this.formatSeparator).trim();return this.format($e(t,i,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...n,...t,interpolationkey:o})};this.resetRegExp();const c=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>We(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?We(this.escape(e)):We(e)}].forEach(t=>{for(s=0;a=t.regex.exec(e);){const r=a[1].trim();if(o=l(r),void 0===o)if("function"==typeof c){const t=c(e,a,n);o=ce(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))o="";else{if(u){o=a[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),o=""}else ce(o)||this.useRawValueToEscape||(o=he(o));const i=t.safeValue(o);if(e=e.replace(a[0],i),u?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,t,r={}){let n,a,o;const s=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${ve(r)}[ ]*{`));let a=`{${n[1]}`;e=n[0],a=this.interpolate(a,o);const s=a.match(/'/g),i=a.match(/"/g);((s?.length??0)%2==0&&!i||(i?.length??0)%2!=0)&&(a=a.replace(/'/g,'"'));try{o=JSON.parse(a),t&&(o={...t,...o})}catch(l){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,l),`${e}${r}${a}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let i=[];o={...r},o=o.replace&&!ce(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const l=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==l&&(i=n[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),n[1]=n[1].slice(0,l)),a=t(s.call(this,n[1].trim(),o),o),a&&n[0]===e&&!ce(a))return a;ce(a)||(a=he(a)),a||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),a=""),i.length&&(a=i.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:n[1].trim()}),a.trim())),e=e.replace(n[0],a),this.regexp.lastIndex=0}return e}}const Ze=e=>{const t={};return(r,n,a)=>{let o=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(o={...o,[a.interpolationkey]:void 0});const s=n+JSON.stringify(o);let i=t[s];return i||(i=e(Se(n),a),t[s]=i),i(r)}},ze=e=>(t,r,n)=>e(Se(r),n)(t);class Ye{constructor(e={}){this.logger=Ee.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const r=t.cacheInBuiltFormats?Ze:ze;this.formats={number:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ze(t)}format(e,t,r,n={}){const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(e=>e.indexOf(")")>-1)){const e=a.findIndex(e=>e.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,e)].join(this.formatSeparator)}return a.reduce((e,t)=>{const{formatName:a,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);"currency"===t&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):"relativetime"===t&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(e=>{if(e){const[t,...n]=e.split(":"),a=n.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();r[o]||(r[o]=a),"false"===a&&(r[o]=!1),"true"===a&&(r[o]=!0),isNaN(a)||(r[o]=parseInt(a,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[a]){let t=e;try{const s=n?.formatParams?.[n.interpolationkey]||{},i=s.locale||s.lng||n.locale||n.lng||r;t=this.formats[a](e,i,{...o,...n,...s})}catch(s){this.logger.warn(s)}return t}return this.logger.warn(`there was no format function for ${a}`),e},e)}}class Xe extends Oe{constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=Ee.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}queueLoad(e,t,r,n){const a={},o={},s={},i={};return e.forEach(e=>{let n=!0;t.forEach(t=>{const s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,n=!1,void 0===o[s]&&(o[s]=!0),void 0===a[s]&&(a[s]=!0),void 0===i[t]&&(i[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(i)}}loaded(e,t,r){const n=e.split("|"),a=n[0],o=n[1];t&&this.emit("failedLoading",a,o,t),!t&&r&&this.store.addResourceBundle(a,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const s={};this.queue.forEach(r=>{((e,t,r)=>{const{obj:n,k:a}=fe(e,t,Object);n[a]=n[a]||[],n[a].push(r)})(r.loaded,[a],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});const t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,n=0,a=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:a,callback:o});this.readingCalls++;const s=(s,i)=>{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)}s&&i&&n<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*a,o)},a):o(s,i)},i=this.backend[r].bind(this.backend);if(2!==i.length)return i(e,t,s);try{const r=i(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(l){s(l)}}prepareLoading(e,t,r={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();ce(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ce(t)&&(t=[t]);const a=this.queueLoad(e,t,r,n);if(!a.toLoad.length)return a.pending.length||n(),null;a.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),n=r[0],a=r[1];this.read(n,a,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${a} for language ${n} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${a} for language ${n}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,n,a,o={},s=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=r&&""!==r){if(this.backend?.create){const l={...o,isUpdate:a},c=this.backend.create.bind(this.backend);if(c.length<6)try{let a;a=5===c.length?c(e,t,r,n,l):c(e,t,r,n),a&&"function"==typeof a.then?a.then(e=>s(null,e)).catch(s):s(null,a)}catch(i){s(i)}else c(e,t,r,n,s,l)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}else this.logger.warn(`did not save key "${r}" 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 Ue=()=>({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:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),ce(e[1])&&(t.defaultValue=e[1]),ce(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ke=e=>(ce(e.ns)&&(e.ns=[e.ns]),ce(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ce(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),qe=()=>{},Qe="__i18next_supportNoticeShown";class Je extends Oe{constructor(e={},t){var r;if(super(),this.options=Ke(e),this.services={},this.logger=Ee,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(ce(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=Ue();var n;this.options={...r,...this.options,...Ke(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(n=this,n?.modules?.backend?.name?.indexOf("Locize")>0||n?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||n?.options?.backend?.backends&&n.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||n?.options?.backend?.projectId||n?.options?.backend?.backendOptions&&n.options.backend.backendOptions.some(e=>e?.projectId))||"undefined"!=typeof globalThis&&globalThis[Qe]||"undefined"!=typeof process&&{}.I18NEXT_NO_SUPPORT_NOTICE||"undefined"!=typeof process||("undefined"!=typeof console&&void 0!==console.info&&console.info("ð i18next is made possible by our own product, Locize â consider powering your project with managed localization (AI, CDN, integrations): https://locize.com ð"),"undefined"!=typeof globalThis&&(globalThis[Qe]=!0));const a=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?Ee.init(a(this.modules.logger),this.options):Ee.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Ye;const t=new je(this.options);this.store=new Ne(this.options.resources,this.options);const n=this.services;n.logger=Ee,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new De(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==r.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!==r.interpolation.format||(n.formatter=a(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new Be(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Xe(a(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=a(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=a(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Fe(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,t||(t=qe),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 o=ue(),s=()=>{const e=(e,r)=>{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),o.resolve(r),t(e,r)};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?s():setTimeout(s,0),o}loadResources(e,t=qe){let r=t;const n=ce(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===n?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();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(n)t(n);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),r(e)})}else r(null)}reloadResources(e,t,r){const n=ue();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=qe),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}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&&Ae.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(e,t){this.isLanguageChangingTo=e;const r=ue();this.emit("languageChanging",e);const n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(a,o)=>{o?this.isLanguageChangingTo===e&&(n(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(a,(...e)=>this.t(...e))},o=t=>{e||t||!this.services.languageDetector||(t=[]);const r=ce(t)?t:t&&t[0],o=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(ce(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 e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}getFixedT(e,t,r){const n=(e,t,...a)=>{let o;o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(a)):{...t},o.lng=o.lng||n.lng,o.lngs=o.lngs||n.lngs,o.ns=o.ns||n.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||r||n.keyPrefix);const s={...this.options,...o};"function"==typeof o.keyPrefix&&(o.keyPrefix=He(o.keyPrefix,s));const i=this.options.keySeparator||".";let l;return o.keyPrefix&&Array.isArray(e)?l=e.map(e=>("function"==typeof e&&(e=He(e,s)),`${o.keyPrefix}${i}${e}`)):("function"==typeof e&&(e=He(e,s)),l=o.keyPrefix?`${o.keyPrefix}${i}${e}`:e),this.t(l,o)};return ce(e)?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=r,n}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;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const o=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(r,e)||n&&!o(a,e)))}loadNamespaces(e,t){const r=ue();return this.options.ns?(ce(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=ue();ce(e)&&(e=[e]);const n=this.options.preload||[],a=e.filter(e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=n.concat(a),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),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(r){}const t=this.services?.languageUtils||new je(Ue());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 r=new Je(e,t);return r.createInstance=Je.createInstance,r}cloneInstance(e={},t=qe){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},a=new Je(n);void 0===e.debug&&void 0===e.prefix||(a.logger=a.logger.clone(e));if(["store","services","language"].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,n)=>(r[n]={...e[t][n]},r),e[t]),e),{});a.store=new Ne(e,n),a.services.resourceStore=a.store}if(e.interpolation){const t={...Ue().interpolation,...this.options.interpolation,...e.interpolation},r={...n,interpolation:t};a.services.interpolator=new Be(r)}return a.translator=new Fe(a.services,n),a.translator.on("*",(e,...t)=>{a.emit(e,...t)}),a.init(n,t),a.translator.options=n,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ge=Je.createInstance();Ge.createInstance,Ge.dir,Ge.init,Ge.loadResources,Ge.reloadResources,Ge.use,Ge.changeLanguage,Ge.getFixedT,Ge.t,Ge.exists,Ge.setDefaultNamespace,Ge.hasLoadedNamespace,Ge.loadNamespaces,Ge.loadLanguages;r(34915);Object.create(null);const et=(e,t,r,n)=>{const a=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);st(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...a):console?.warn&&console.warn(...a)},tt={},rt=(e,t,r,n)=>{st(r)&&tt[r]||(st(r)&&(tt[r]=new Date),et(e,t,r,n))},nt=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},at=(e,t,r)=>{e.loadNamespaces(t,nt(e,r))},ot=(e,t,r,n)=>{if(st(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return at(e,r,n);r.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,nt(e,n))},st=e=>"string"==typeof e,it=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,lt={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},ct=e=>lt[e];let ut={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(it,ct),transDefaultProps:void 0};let ht;const pt=()=>ht,gt={type:"3rdParty",init(e){((e={})=>{ut={...ut,...e}})(e.options.react),(e=>{ht=e})(e)}},dt=(0,n.createContext)();class ft{constructor(){this.usedNamespaces={}}
2addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}class mt extends Error{constructor(e,t,r){super(e),this.name="TranslationParserError",this.position=t,this.translationString=r,Error.captureStackTrace&&Error.captureStackTrace(this,mt)}}const yt={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","©":"©","®":"®","™":"â¢","…":"â¦","–":"â","—":"â","‘":"â","’":"â","‚":"â","“":"â","”":"â","„":"â","†":"â ","‡":"â¡","•":"â¢","′":"â²","″":"â³","‹":"â¹","›":"âº","§":"§","¶":"¶","·":"·"," ":"â"," ":"â"," ":"â","€":"â¬","£":"£","¥":"Â¥","¢":"¢","¤":"¤","×":"Ã","÷":"÷","−":"â","±":"±","≠":"â ","≤":"â¤","≥":"â¥","≈":"â","≡":"â¡","∞":"â","∫":"â«","∑":"â","∏":"â","√":"â","∂":"â","‰":"â°","°":"°","µ":"µ","←":"â","↑":"â","→":"â","↓":"â","↔":"â","↵":"âµ","⇐":"â","⇑":"â","⇒":"â","⇓":"â","⇔":"â","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"Ï","ρ":"Ï","σ":"Ï","τ":"Ï","υ":"Ï
","φ":"Ï","χ":"Ï","ψ":"Ï","ω":"Ï","Α":"Î","Β":"Î","Γ":"Î","Δ":"Î","Ε":"Î","Ζ
2":"Î","Η":"Î","Θ":"Î","Ι":"Î","Κ":"Î","Λ":"Î","Μ":"Î","Ν":"Î","Ξ":"Î","Ο":"Î","Π":"Î ","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Î¥","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","À":"Ã","Á":"Ã","Â":"Ã","Ã":"Ã","Ä":"Ã","Å":"Ã
","Æ":"Ã","Ç":"Ã","È":"Ã","É":"Ã","Ê":"Ã","Ë":"Ã","Ì":"Ã","Í":"Ã","Î":"Ã","Ï":"Ã","Ð":"Ã","Ñ":"Ã","Ò":"Ã","Ó":"Ã","Ô":"Ã","Õ":"Ã","Ö":"Ã","Ø":"Ã","Ù":"Ã","Ú":"Ã","Û":"Ã","Ü":"Ã","Ý":"Ã","Þ":"Ã","ß":"Ã","à":"à ","á":"á","â":"â","ã":"ã","ä":"ä","å":"Ã¥","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"Ã","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ","¡":"¡","¿":"¿","ƒ":"Æ","ˆ":"Ë","˜":"Ë","Œ":"Å","œ":"Å","Š":"Å ","š":"Å¡","Ÿ":"Ÿ","ª":"ª","º":"º","¯":"¯","´":"´","¸":"¸","¹":"¹","²":"²","³":"³","¼":"¼","½":"½","¾":"¾","♠":"â ","♣":"â£","♥":"â¥","♦":"â¦","◊":"â","‾":"â¾","⁄":"â","℘":"â","ℑ":"â","ℜ":"â","ℵ":"âµ"},xt=new RegExp(Object.keys(yt).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),vt=(e,t=[])=>{if(!e)return[];const r=(e=>{const t=[];let r=0,n="";const a=()=>{n&&(t.push({type:"Text",value:n,position:r-n.length}),n="")};for(;r<e.length;){const o=e[r];if("<"===o){const s=e.slice(r).match(/^<(\d+)>/);if(s)a(),t.push({type:"TagOpen",value:s[0],position:r,tagNumber:parseInt(s[1],10)}),r+=s[0].length;else{const s=e.slice(r).match(/^<\/(\d+)>/);s?(a(),t.push({type:"TagClose",value:s[0],position:r,tagNumber:parseInt(s[1],10)}),r+=s[0].length):(n+=o,r+=1)}}else n+=o,r+=1}return a(),t})(e),a=[],o=[],s=new Set;if(r.forEach(r=>{switch(r.type){case"Text":{const e=r.value.replace(xt,e=>yt[e]).replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10))).replace(/&#x([0-9a-fA-F]+);/g,(e,t)=>String.fromCharCode(parseInt(t,16)));(o.length>0?o[o.length-1].children:a).push(e)}break;case"TagOpen":{const{tagNumber:e}=r,n=(()=>{if(0===o.length)return t;const e=o[o.length-1];return e.declaration.props?.children&&Array.isArray(e.declaration.props.children)?e.declaration.props.children:e.declarations})(),i=n[e];if(!i){s.add(e);const t=`<${e}>`;(o.length>0?o[o.length-1].children:a).push(t);break}o.push({tagNumber:e,children:[],position:r.position,declaration:i,declarations:n})}break;case"TagClose":{const{tagNumber:t}=r;if(s.has(t)){const e=`</${t}>`;(o.length>0?o[o.length-1].children:a).push(e),s.delete(t);break}if(0===o.length)throw new mt(`Unexpected closing tag </${t}> at position ${r.position}`,r.position,e);const i=o.pop();if(i.tagNumber!==t)throw new mt(`Mismatched tags: expected </${i.tagNumber}> but got </${t}> at position ${r.position}`,r.position,e);const l=((e,t,r)=>{const{type:a,props:o={}}=e;if(o.children&&Array.isArray(o.children)&&r){const{children:e,...r}=o;return n.createElement(a,r,...t)}return 0===t.length?n.createElement(a,o):1===t.length?n.createElement(a,o,t[0]):n.createElement(a,o,...t)})(i.declaration,i.children,i.declarations);(o.length>0?o[o.length-1].children:a).push(l)}}}),o.length>0){const t=o[o.length-1];throw new mt(`Unclosed tag <${t.tagNumber}> at position ${t.position}`,t.position,e)}return a};function Ct({i18nKey:e,defaultTranslation:t,content:r,ns:a,values:o={},i18n:s,t:i}){const l=s||pt();if(!l)return rt(l,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),n.createElement(n.Fragment,{},t);const c=i||l.t?.bind(l)||(e=>e);let u=a||c.ns||l.options?.defaultNS;u=st(u)?[u]:u||["translation"];let h=o;l.options?.interpolation?.defaultVariables&&(h=o&&Object.keys(o).length>0?{...o,...l.options.interpolation.defaultVariables}:{...l.options.interpolation.defaultVariables});const p=c(e,{defaultValue:t,...h,ns:u});try{const e=vt(p,r);return n.createElement(n.Fragment,{},...e)}catch(g){return et(l,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${g.message}`,{i18nKey:e,error:g}),n.createElement(n.Fragment,{},p)}}Ct.displayName="IcuTransWithoutContext";var bt=r(19888);const Lt={t:(e,t)=>{if(st(t))return t;if("object"==typeof(r=t)&&null!==r&&st(t.defaultValue))return t.defaultValue;var r;if("function"==typeof e)return"";if(Array.isArray(e)){const t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},kt=()=>()=>{},wt=(e,t={})=>{const{i18n:r}=t,{i18n:a,defaultNS:o}=(0,n.useContext)(dt)||{}
2,s=r||a||pt();s&&!s.reportNamespaces&&(s.reportNamespaces=new ft),s||rt(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const i=(0,n.useMemo)(()=>({...ut,...s?.options?.react,...t}),[s,t]),{useSuspense:l,keyPrefix:c}=i,u=e||o||s?.options?.defaultNS,h=st(u)?[u]:u||["translation"],p=(0,n.useMemo)(()=>h,h);s?.reportNamespaces?.addUsedNamespaces?.(p);const g=(0,n.useRef)(0),d=(0,n.useCallback)(e=>{if(!s)return kt;const{bindI18n:t,bindI18nStore:r}=i,n=()=>{g.current+=1,e()};return t&&s.on(t,n),r&&s.store.on(r,n),()=>{t&&t.split(" ").forEach(e=>s.off(e,n)),r&&r.split(" ").forEach(e=>s.store.off(e,n))}},[s,i]),f=(0,n.useRef)(),m=(0,n.useCallback)(()=>{if(!s)return Lt;const e=!(!s.isInitialized&&!s.initializedStoreOnce)&&p.every(e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(rt(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,s,i)),r=t.lng||s.language,n=g.current,a=f.current;if(a&&a.ready===e&&a.lng===r&&a.keyPrefix===c&&a.revision===n)return a;const o={t:s.getFixedT(r,"fallback"===i.nsMode?p:p[0],c),ready:e,lng:r,keyPrefix:c,revision:n};return f.current=o,o},[s,p,c,i,t.lng]),[y,x]=(0,n.useState)(0),{t:v,ready:C}=(0,bt.useSyncExternalStore)(d,m,m);(0,n.useEffect)(()=>{if(s&&!C&&!l){const e=()=>x(e=>e+1);t.lng?ot(s,t.lng,p,e):at(s,p,e)}},[s,t.lng,p,C,l,y]);const b=s||{},L=(0,n.useRef)(null),k=(0,n.useRef)(),w=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const r=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(r,"__original"))try{Object.defineProperty(r,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(n){}return r},S=(0,n.useMemo)(()=>{const e=b,t=e?.language;let r=e;e&&(L.current&&L.current.__original===e?k.current!==t?(r=w(e),L.current=r,k.current=t):r=L.current:(r=w(e),L.current=r,k.current=t));const n=C||l?v:(...e)=>(rt(s,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...e)),a=[n,r,C];return a.t=n,a.i18n=r,a.ready=C,a},[v,b,C,b.resolvedLanguage,b.language,b.languages]);if(s&&l&&!C)throw new Promise(e=>{const r=()=>e();t.lng?ot(s,t.lng,p,r):at(s,p,r)});return S};Ge.use(gt).init({resources:{en:{translation:{"part.frontBumper.short":"FB","part.frontBumper.long":"Front Bumper","part.rearBumper.short":"RB","part.rearBumper.long":"Rear Bumper","part.leftHeadLight.short":"LHL","part.leftHeadLight.long":"Left Headlight","part.rightHeadLight.short":"RHL","part.rightHeadLight.long":"Right Headlight","part.leftTailLight.short":"LTL","part.leftTailLight.long":"Left Tail Light","part.rightTailLight.short":"RTL","part.rightTailLight.long":"Right Tail Light","part.boot.short":"BOOT","part.boot.long":"Boot","part.frontGrill.short":"FG","part.frontGrill.long":"Front Grille","part.roof.short":"ROOF","part.roof.long":"Roof","part.rearWindshield.short":"RWS","part.rearWindshield.long":"Rear Windshield","part.frontWindshield.short":"FWS","part.frontWindshield.long":"Front Windshield","part.sunRoof.short":"SR","part.sunRoof.long":"Sun Roof","part.leftBonnet.short":"LB","part.leftBonnet.long":"Left Side of Bonnet","part.rightBonnet.short":"RB","part.rightBonnet.long":"Right Side of Bonnet","part.bonnet.short":"Bonnet","part.bonnet.long":"Bonnet","part.rearRightWheel.short":"RRW","part.rearRightWheel.long":"Rear Right Wheel","part.frontRightWheel.short":"FRW","part.frontRightWheel.long":"Front Right Wheel","part.frontRightBumper.short":"FRB","part.frontRightBumper.long":"Front Right Bumper","part.rightRunningPanel.short":"RRP","part.rightRunningPanel.long":"Right Running Panel","part.frontRightDoor.short":"FRD","part.frontRightDoor.long":"Front Right Door","part.rearRightDoor.short":"RRD","part.rearRightDoor.long":"Rear Right Door","part.frontRightWindow.short":"FRW","part.frontRightWindow.long":"Front Right Window","part.rearRightWindow.short":"RRW","part.rearRightWindow.long":"Rear Right Window","part.rightQuarterPanel.short":"RQP","part.rightQuarterPanel.long":"Right Quarter Panel","part.rightQuarterWindow.short":"RQW","part.rightQuarterWindow.long":"Right Quarter Window","part.rearRightBumper.short":"RRB","part.rearRightBumper.long":"Rear Right Bumper","part.rightFender.short":"RF","part.rightFender.long":"Right Fender","part.rearLeftWheel.short":"RLW","part.rearLeftWheel.long":"Rear Left Wheel","part.frontLeftWheel.short":"FLW","part.frontLeftWheel.long":"Front Left Wheel","part.frontLeftBumper.short":"FLB","part.frontLeftBumper.long":"Front Left Bumper","part.leftRunningPanel.short":"LRP","part.leftRunningPanel.long":"Left Running Panel","part.frontLeftDoor.short":"FLD","part.frontLeftDoor.long":"Front Left Door","part.rearLeftDoor.short":"RLD","part.rearLeftDoor.long":"Rear Left Door","part.frontLeftWindow.short":"FLW","part.frontLeftWindow.long":"Front Left Window","part.rearLeftWindow.short":"RLW","part.rearLeftWindow.long":"Rear Left Window","part.leftQuarterPanel.short":"LQP","part.leftQuarterPanel.long":"Left Quarter Panel","part.leftQuarterWindow.short":"LQW","part.leftQuarterWindow.long":"Left Quarter Window","part.rearLeftBumper.short":"RLB","part.rearLeftBumper.long":"Rear Left Bumper","part.leftFender.short":"LF","part.leftFender.long":"Left Fender",title:"Car Part Selector",selectedParts:"Selected Parts:",next:"Next",screenshot:"Take Screenshot"}},ar:{translation:{"part.frontBumper.short":"FB","part.frontBumper.long":"اÙÙ
صد Ø§ÙØ£Ù
اÙ
Ù","part.rearBumper.short":"RB","part.rearBumper.long":"اÙÙ
صد Ø§ÙØ®ÙÙÙ","part.leftHeadLight.short":"LHL","part.leftHeadLight.long":"اÙÙ
ØµØ¨Ø§Ø Ø§ÙØ£Ù
اÙ
Ù Ø§ÙØ£Ùسر","part.rightHeadLight.short":"RHL","part.rightHeadLight.long":"اÙÙ
ØµØ¨Ø§Ø Ø§ÙØ£Ù
اÙ
Ù Ø§ÙØ£ÙÙ
Ù","part.leftTailLight.short":"LTL","part.leftTailLight.long":"Ø¶ÙØ¡ Ø§ÙØ°ÙÙ Ø§ÙØ£Ùسر","part.rightTailLight.short":"RTL","part.rightTailLight.long":"Ø¶ÙØ¡ Ø§ÙØ°ÙÙ Ø§ÙØ£ÙÙ
Ù","part.boot.short":"BOOT","part.boot.long":"Ø§ÙØµÙدÙÙ Ø§ÙØ®ÙÙÙ","part.frontGrill.short":"FG","part.frontGrill.long":"Ø§ÙØ´Ø¨ÙØ© Ø§ÙØ£Ù
اÙ
ÙØ©","part.roof.short":"ROOF","part.roof.long":"Ø§ÙØ³ÙÙ","part.rearWindshield.short":"RWS","part.rearWindshield.long":"Ø§ÙØ²Ø¬Ø§Ø¬ Ø§ÙØ®ÙÙÙ","part.frontWindshield.short":"FWS","part.frontWindshield.long":"Ø§ÙØ²Ø¬Ø§Ø¬ Ø§ÙØ£Ù
اÙ
Ù","part.sunRoof.short":"SR","part.sunRoof.long":"ÙØªØØ© سÙÙ","part.leftBonnet.short":"LB","part.leftBonnet.long":"Ø§ÙØ¬Ø§Ùب Ø§ÙØ£Ùسر Ù
٠غطاء اÙÙ
ØØ±Ù","part.rightBonnet.short":"RB","part.rightBonnet.long":"Ø§ÙØ¬Ø§Ùب Ø§ÙØ£ÙÙ
Ù Ù
٠غطاء اÙÙ
ØØ±Ù","part.bonnet.short":"Bonnet","part.bonnet.long":"غطاء اÙÙ
ØØ±Ù","part.rearRightWheel.short":"RRW","part.rearRightWheel.long":"Ø§ÙØ¹Ø¬ÙØ© Ø§ÙØ®ÙÙÙØ© اÙÙÙ
ÙÙ","part.frontRightWheel.short":"FRW","part.frontRightWheel.long":"Ø§ÙØ¹Ø¬ÙØ© Ø§ÙØ£Ù
اÙ
ÙØ© اÙÙÙ
ÙÙ","part.frontRightBumper.short":"FRB","part.frontRightBumper.long":"اÙÙ
صد Ø§ÙØ£Ù
اÙ
Ù Ø§ÙØ£ÙÙ
Ù","part.rightRunningPanel.short":"RRP","part.rightRunningPanel.long":"اÙÙÙØØ© Ø§ÙØ¬Ø§ÙØ¨ÙØ© اÙÙÙ
ÙÙ","part.frontRightDoor.short":"FRD","part.frontRightDoor.long":"Ø§ÙØ¨Ø§Ø¨ Ø§ÙØ£Ù
اÙ
Ù Ø§ÙØ£ÙÙ
Ù","part.rearRightDoor.short":"RRD","part.rearRightDoor.long":"Ø§ÙØ¨Ø§Ø¨ Ø§ÙØ®ÙÙÙ Ø§ÙØ£ÙÙ
Ù","part.frontRightWindow.short":"FRW","part.frontRightWindow.long":"اÙÙØ§Ùذة Ø§ÙØ£Ù
اÙ
ÙØ© اÙÙÙ
ÙÙ","part.rearRightWindow.short":"RRW","part.rearRightWindow.long":"اÙÙØ§Ùذة Ø§ÙØ®ÙÙÙØ© اÙÙÙ
ÙÙ","part.rightQuarterPanel.short":"RQP","part.rightQuarterPanel.long":"اÙÙÙØØ© Ø§ÙØ¬Ø§ÙØ¨ÙØ© اÙÙÙ
ÙÙ Ø§ÙØ®ÙÙÙØ©","part.rightQuarterWindow.short":"RQW","part.rightQuarterWindow.long":"اÙÙØ§Ùذة Ø§ÙØ¬Ø§ÙØ¨ÙØ© اÙÙÙ
ÙÙ Ø§ÙØ®ÙÙÙØ©","part.rearRightBumper.short":"RRB","part.rearRightBumper.long":"اÙÙ
صد Ø§ÙØ®ÙÙÙ Ø§ÙØ£ÙÙ
Ù","part.rightFender.short":"RF","part.rightFender.long":"Ø§ÙØ±ÙØ±Ù Ø§ÙØ£ÙÙ
Ù","part.rearLeftWheel.short":"RLW","part.rearLeftWheel.long":"Ø§ÙØ¹Ø¬ÙØ© Ø§ÙØ®ÙÙÙØ© اÙÙØ³Ø±Ù","part.frontLeftWheel.short":"FLW","part.frontLeftWheel.long":"Ø§ÙØ¹Ø¬ÙØ© Ø§ÙØ£Ù
اÙ
ÙØ© اÙÙØ³Ø±Ù","part.frontLeftBumper.short":"FLB","part.frontLeftBumper.long":"اÙÙ
صد Ø§ÙØ£Ù
اÙ
Ù Ø§ÙØ£Ùسر","part.leftRunningPanel.short":"LRP","part.leftRunningPanel.long":"اÙÙÙØØ© Ø§ÙØ¬Ø§ÙØ¨ÙØ© اÙÙØ³Ø±Ù","part.frontLeftDoor.short":"FLD","part.frontLeftDoor.long":"Ø§ÙØ¨Ø§Ø¨ Ø§ÙØ£Ù
اÙ
Ù Ø§ÙØ£Ùسر","part.rearLeftDoor.short":"RLD","part.rearLeftDoor.long":"Ø§ÙØ¨Ø§Ø¨ Ø§ÙØ®ÙÙÙ Ø§ÙØ£Ùسر","part.frontLeftWindow.short":"FLW","part.frontLeftWindow.long":"اÙÙØ§Ùذة Ø§ÙØ£Ù
اÙ
ÙØ© اÙÙØ³Ø±Ù","part.rearLeftWindow.short":"RLW","part.rearLeftWindow.long":"اÙÙØ§Ùذة Ø§ÙØ®ÙÙÙØ© اÙÙØ³Ø±Ù","part.leftQuarterPanel.short":"LQP","part.leftQuarterPanel.long":"اÙÙÙØØ© Ø§ÙØ¬Ø§ÙØ¨ÙØ© اÙÙØ³Ø±Ù Ø§ÙØ®ÙÙÙØ©","part.leftQuarterWindow.short":"LQW","part.leftQuarterWindow.long":"اÙÙØ§Ùذة Ø§ÙØ¬Ø§ÙØ¨ÙØ© اÙÙØ³Ø±Ù Ø§ÙØ®ÙÙÙØ©","part.rearLeftBumper.short":"RLB","part.rearLeftBumper.long":"اÙÙ
صد Ø§ÙØ®ÙÙÙ Ø§ÙØ£Ùسر","part.leftFender.short":"LF","part.leftFender.long":"Ø§ÙØ±ÙØ±Ù Ø§ÙØ£Ùسر",title:"Ù
ØØ¯Ø¯ أجزاء Ø§ÙØ³Ùارة",selectedParts:"Ø§ÙØ£Ø¬Ø²Ø§Ø¡ اÙÙ
ختارة:",next:"Ø§ÙØªØ§ÙÙ",screenshot:"Ø§ÙØªÙاط ØµÙØ±Ø©"}}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}});var St=Ge;const _t=[{id:"right-head-light",class:"right-head-light",textX:60,textY:170,paths:[],rect:{x:57.5,y:200.5,width:24,height:27},circle:null,short_name_key:"part.rightHeadLight.short",long_name_key:"part.rightHeadLight.long",rotation:0},{id:"front-bumper",class:"front-bumper",textX:40,textY:290,paths:["M47.5791 182.5C53.0582 182.5 57.4999 186.942 57.5 192.421V390.579C57.4999 396.058 53.0582 400.5 47.5791 400.5C43.6695 400.5 40.5 397.331 40.5 393.421V189.579L40.5088 189.215C40.6983 185.474 43.7916 182.5 47.5791 182.5Z","M38 189.5H40.5V394.5H38C29.4396 394.5 22.5 387.56 22.5 379V205C22.5 196.44 29.4396 189.5 38 189.5Z","M73 188V187V188ZM82 197H83H82ZM82 245V246H83V245H82ZM81.6914 336.992L81.6408 337.991L81.6534 337.992L81.6661 337.992L81.6914 336.992ZM82 337H83V336.025L82.0253 336L82 337ZM73 395V396V395ZM57 395H56V396H57V395ZM57 188V187H56V188H57ZM73 188V189C77.4183 189 81 192.582 81 197H82H83C83 191.477 78.5228 187 73 187V188ZM82 197H81V245H82H83V197H82ZM82 245V244C78.134 244 75 247.134 75 251H76H77C77 248.239 79.2386 246 82 246V245ZM76 251H75V331H76H77V251H76ZM76 331H75C75 334.746 77.9413 337.803 81.6408 337.991L81.6914 336.992L81.742 335.993C79.1009 335.86 77 333.675 77 331H76ZM81.6914 336.992L81.6661 337.992L81.9747 338L82 337L82.0253 336L81.7167 335.993L81.6914 336.992ZM82 337H81V386H82H83V337H82ZM82 386H81C81 390.418 77.4183 394 73 394V395V396C78.5228 396 83 391.523 83 386H82ZM73 395V394H57V395V396H73V395ZM57 395H58V188H57H56V395H57ZM57 188V189H73V188V187H57V188Z"],rect:[{x:61.5,y:227.5,width:5,height:129,stroke:"#666666"},{x:66.5,y:227.5,width:5,height:129,stroke:"#666666"}],circle:[{cx:48.5,cy:380.5,r:2},{cx:48.5,cy:262.5,r:2},{cx:48.5,cy:321.5,r:2},{cx:48.5,cy:203.5,r:2}],short_name_key:"part.frontBumper.short",long_name_key:"part.frontBumper.long",rotation:90},{id:"left-head-light",class:"left-head-light",textX:60,textY:430,paths:[],rect:{x:57.5,y:356.5,width:24,height:27,stroke:"#666666"},circle:null,short_name_key:"part.leftHeadLight.short",long_name_key:"part.leftHeadLight.long"},{id:"right-tail-light",class:"right-tail-light",textX:740,textY:170,paths:["M743 213L726.847 230.62
21C726.724 230.755 726.5 230.668 726.5 230.486V194.535C726.5 194.35 726.73 194.264 726.851 194.404L743 213Z","M759.536 231H726.955C726.781 231 726.69 230.793 726.807 230.665L743 213L759.681 230.663C759.802 230.79 759.711 231 759.536 231Z","M760 194.5L743 213L760 231V194.5Z","M748 184.5L726.748 193.89C726.625 193.945 726.589 194.103 726.678 194.205L743 213L760 194.5V192L748 184.5Z"],rect:null,circle:null,short_name_key:"part.rightTailLight.short",long_name_key:"part.rightTailLight.long"},{id:"left-tail-light",class:"left-tail-light",textX:740,textY:420,paths:["M743.5 375.5L726.847 357.378C726.724 357.244 726.5 357.331 726.5 357.513V392.997C726.5 393.178 726.721 393.266 726.845 393.134L743.5 375.5Z","M759.554 357H726.955C726.781 357 726.69 357.207 726.808 357.335L743.5 375.5L759.703 357.333C759.818 357.204 759.726 357 759.554 357Z","M760 394L743.5 375.5L760 357V394Z","M748 403L726.759 393.614C726.633 393.559 726.6 393.395 726.694 393.294L743.5 375.5L760 393.5V395.5L748 403Z"],rect:null,circle:null,short_name_key:"part.leftTailLight.short",long_name_key:"part.leftTailLight.long"},{id:"rear-bumper",class:"rear-bumper",textX:750,textY:300,paths:["M769.214 184C772.962 184 776 187.038 776 190.786V395.714C776 399.462 772.962 402.5 769.214 402.5C764.125 402.5 760 398.375 760 393.286V193.214C760 188.125 764.125 184 769.214 184Z","M782.5 190.5C788.851 190.5 794 195.649 794 202V385C794 391.351 788.851 396.5 782.5 396.5H776V190.5H782.5Z","M760 231V357H726.5V231H760Z","M760 231V357H753V231H760Z","M753 231V357H738V329.5H741.5V256.5H738V231H753Z"],rect:{x:734.5,y:256.5,width:7,height:73,stroke:"#666666"},circle:[{cx:768.5,cy:204.5,r:2,stroke:"#666666"},{cx:768.5,cy:382.5,r:2,stroke:"#666666"},{cx:768.5,cy:323.5,r:2,stroke:"#666666"},{cx:768.5,cy:264.5,r:2,stroke:"#666666"}],short_name_key:"part.rearBumper.short",long_name_key:"part.rearBumper.long"},{id:"front-grill",class:"front-grill",textX:110,textY:290,paths:[],rect:{x:104.5,y:200.5,width:15,height:185},circle:null,short_name_key:"part.frontGrill.short",long_name_key:"part.frontGrill.long"},{id:"roof",class:"roof",textX:480,textY:290,paths:["m 540.023,219.618 c -1.239,3.289 -3.108,9.641 -4.668,16.548 -1.56,6.912 -2.799,14.334 -2.799,19.776 0,8.761 -0.009,22.375 -0.018,35.479 -0.008,13.104 -0.017,25.698 -0.017,32.417 0.168,8.133 1.203,27.487 5.973,41.337 L 539,366 l -1.013,-0.163 c -24.331,-1.659 -80.738,-4.435 -117.905,-2.445 -37.213,1.991 -50.925,2.619 -53.061,2.946 H 366.5 l -0.479,-2.5 c -1.521,-9.338 -4.367,-28.079 -3.965,-41.277 0.399,-13.125 0.166,-50.228 0,-67.162 l -0.022,-0.953 c -0.05,-5.28 0.777,-18.182 4.533,-35.01 l 0.094,-0.418 0.427,0.027 c 15.162,0.995 52.784,2.985 81.968,2.985 36.508,0 72.483,-0.546 91.444,-3.03 z m -134.467,28.795 c -8.837,0 -16,7.164 -16,16 v 56.597 c 0,8.836 7.163,16 16,16 h 21 c 8.836,0 16,-7.164 16,-16 v -56.597 c 0,-8.836 -7.164,-16 -16,-16 z"],rect:null,circle:null,short_name_key:"part.roof.short",long_name_key:"part.roof.long",rotation:90},{id:"boot",class:"boot",textX:680,textY:290,paths:["M693 384.5H640.328C640.178 384.5 640.083 384.34 640.151 384.206C652.813 359.513 654.502 335.964 655 327C655.5 307 655.5 265 654.5 245.5C653.69 229.704 645.707 209.033 639.73 200.812C639.634 200.679 639.731 200.498 639.895 200.496L693 200L697.5 227C699.5 238.6 700 250.167 700 254.5V310C700 328 699.333 337.833 699 340.5L693 384.5Z"],rect:null,circle:null,short_name_key:"part.boot.short",long_name_key:"part.boot.long",rotation:90},{id:"rear-windshield",class:"rear-windshield",textX:580,textY:290,paths:["M625 369V215.5L605.5 215.5C599.5 215 591.333 216.333 588.5 217L544 228.5L541.5 239.5C539.9 248.7 539.5 257 539.5 260V322.5C539.1 331.7 541.666 349 543 356.5C549 357.833 565.6 361.3 580 364.5C594.4 367.7 603 368.833 605.5 369H625Z"],rect:null,circle:null,short_name_key:"part.rearWindshield.short",long_name_key:"part.rearWindshield.long",rotation:90},{id:"front-windshield",class:"front-windshield",textX:330,textY:290,paths:["m 366.5,366.5 -69.951,15.989 c -0.027,0.006 -0.054,-0.011 -0.06,-0.038 L 292,362.5 c -1.5,-8 -3,-15 -3,-21.5 0,-28 -0.5,-93 0.5,-105.5 0.199,-2.492 4,-21 6.5,-34.5 l 25.97929,6.63301 12.4411,3.17645 L 366.5,219 c -0.5,2.167 -1.8,8.7 -3,17.5 -1.2,8.8 -1.5,15.667 -1.5,18 V 327 c 0,10.8 3,30.833 4.5,39.5 z"],rect:null,circle:null,short_name_key:"part.frontWindshield.short",long_name_key:"part.frontWindshield.long",rotation:90},{id:"sun-roof",class:"sun-roof",textX:415,textY:290,paths:["M405 248.5H427C435.56 248.5 442.5 255.44 442.5 264V321.701C442.5 330.374 435.384 337.359 426.713 337.198L404.713 336.791C396.266 336.635 389.5 329.742 389.5 321.294V264L389.505 263.6C389.717 255.224 396.573 248.5 405 248.5Z"],rect:null,circle:null,short_name_key:"part.sunRoof.short",long_name_key:"part.sunRoof.long",rotation:90},{id:"left-bonnet",class:"left-bonnet",textX:200,textY:370,paths:["M147.974 333.5L154.431 383L296.5 382.5L144.056 326.704C143.877 326.638 143.716 326.838 143.819 326.999L147.974 333.5Z"],rect:null,circle:null,short_name_key:"part.leftBonnet.short",long_name_key:"part.leftBonnet.long"},{id:"right-bonnet",class:"right-bonnet",textX:200,textY:216,paths:["M147.974 250.5L154.431 201H295.868C296.092 201 296.147 201.311 295.937 201.388L143.647 256.946C143.601 256.963 143.561 256.911 143.589 256.871L147.974 250.5Z"],rect:null,circle:null,short_name_key:"part.rightBonnet.short",long_name_key:"part.rightBonnet.long"},{id:"bonnet",class:"bonnet",textX:230,textY:290,paths:["M290.045 232.365C289.993 232.75 289.941 233.164 289.889 233.607C289.538 237.215 289 246.875 289 264.105V340.605C289 343.605 289.4 351.005 291 356.
2605L296.5 382.605C296.258 382.218 296.011 381.814 295.758 381.395L295.93 382.254C295.96 382.407 295.647 382.054 295.5 382L144.228 326.77C143.992 326.682 143.5 327.5 143.5 325.688V257.524C143.5 257.273 143.657 257.048 143.894 256.961L295.5 201.605C295.591 201.572 295.851 201.231 295.9 201.301C295.934 201.236 295.967 201.171 296 201.105L290.045 232.365Z","M153.59 299.973L143.5 296.717L143.5 286.878L153.583 284.017L159.383 292L153.59 299.973Z","M276 328C276 342.4 289 370.5 296.5 382.5L291 356.5C289.4 350.9 289 343.5 289 340.5V264C289 244.8 289.667 235 290 232.5L296 201C280 232.2 275.833 251 276 256V328Z"],rect:null,circle:null,short_name_key:"part.bonnet.short",long_name_key:"part.bonnet.long",rotation:90},{id:"rear-right-wheel",class:"rear-right-wheel",textX:577,textY:75,paths:["M576.5 36.5C596.935 36.5 613.5 53.0655 613.5 73.5C613.5 93.9345 596.935 110.5 576.5 110.5C556.065 110.5 539.5 93.9345 539.5 73.5C539.5 53.0655 556.065 36.5 576.5 36.5ZM576.5 50.5C563.797 50.5 553.5 60.7975 553.5 73.5C553.5 86.2025 563.797 96.5 576.5 96.5C589.203 96.5 599.5 86.2025 599.5 73.5C599.5 60.7975 589.203 50.5 576.5 50.5Z"],rect:null,circle:null,short_name_key:"part.rearRightWheel.short",long_name_key:"part.rearRightWheel.long"},{id:"front-right-wheel",class:"front-right-wheel",textX:233,textY:75,paths:["M233.5 37.5C253.935 37.5 270.5 54.0655 270.5 74.5C270.5 94.9345 253.935 111.5 233.5 111.5C213.065 111.5 196.5 94.9345 196.5 74.5C196.5 54.0655 213.065 37.5 233.5 37.5ZM233.5 51.5C220.797 51.5 210.5 61.7975 210.5 74.5C210.5 87.2025 220.797 97.5 233.5 97.5C246.203 97.5 256.5 87.2025 256.5 74.5C256.5 61.7975 246.203 51.5 233.5 51.5Z"],rect:null,circle:null,short_name_key:"part.frontRightWheel.short",long_name_key:"part.frontRightWheel.long"},{id:"front-right-bumper",class:"front-right-bumper",textX:160,textY:100,paths:["M191 85C189 79.8 187.167 70.6666 186.5 66.5H154L145 85H145.5C141.667 85.1667 135 86.5001 135 90.5V106.5C135 110.366 138.134 113.5 142 113.5H148.5L196 113C191 107.5 183.1 96.6 181.5 85H191Z","M145.5 85H181.5C183.1 96.6001 191 107.5 196 113L148.5 113.5H142C138.134 113.5 135 110.366 135 106.5V99.5V90.5001C135 86.5001 141.667 85.1667 145.5 85Z"],rect:null,circle:null,short_name_key:"part.frontRightBumper.short",long_name_key:"part.frontRightBumper.long"},{id:"right-running-panel",class:"right-running-panel",textX:400,textY:77,paths:["M529.5 66.5H283C282.6 74.1 279.833 82.3333 278.5 85.5H534.5L534.381 85.095C531.931 76.7676 529.828 69.6163 529.5 66.5Z"],rect:null,circle:null,short_name_key:"part.rightRunningPanel.short",long_name_key:"part.rightRunningPanel.long"},{id:"front-right-door",class:"front-right-door",textX:350,textY:140,paths:["M373.641 206.364C386.441 212.764 425.167 213.5 443 213L440 162C438.833 150.833 436.5 132 437 113.5C437.333 107.667 439.5 95.5001 441.5 85.5001H295.5C287.9 124.7 295.833 154.999 301 165.499L373.641 206.364ZM436 208C420.351 208 387.608 207.582 380 202.5C360.5 193.5 322.845 172.379 310.745 161L432.5 160.5L436 208Z"],rect:null,circle:null,short_name_key:"part.frontRightDoor.short",long_name_key:"part.frontRightDoor.long"},{id:"rear-right-door",class:"rear-right-door",textX:500,textY:140,paths:["M443.489 213C477.631 213.751 501.554 212.215 511.301 211.194L513.06 210.996L513.094 210.993L513.128 210.984C514.177 210.708 515.486 209.935 516.968 208.827C518.463 207.707 520.182 206.208 522.059 204.425C525.813 200.858 530.228 196.127 534.788 190.955C543.34 181.258 552.428 169.987 558.685 161.881L559.907 160.291L559.916 160.278C561.424 158.016 563.789 154.193 565.727 150.076C567.656 145.981 569.207 141.506 568.999 137.971C568.755 133.824 565.453 130.899 560.642 127.645C555.77 124.35 549.239 120.651 542.013 114.921C533.586 106.986 528.142 98.5661 524.67 86.1664L524.568 85.8031L524.19 85.8021L441.56 85.4984L441.504 85.9379C441.081 89.3179 440.526 91.5404 439.849 94.7015C439.171 97.8624 438.381 101.923 437.504 108.938C436.497 116.991 436.877 127.66 437.627 137.787C438.376 147.898 439.505 157.582 440.002 163.541L443.029 212.99L443.489 213ZM448.521 207L446.477 160.5H547.877L547.43 161.255C543.431 168.003 537.831 177.417 531.835 185.76C528.837 189.931 525.732 193.845 522.672 197.029C519.618 200.206 516.577 202.688 513.702 203.957L513.685 203.965L
2513.668 203.971L513.094 204.164C509.897 205.187 501.882 207 492.5 207H448.521Z"],rect:null,circle:null,short_name_key:"part.rearRightDoor.short",long_name_key:"part.rearRightDoor.long"},{id:"front-right-window",class:"front-right-window",textX:400,textY:190,paths:["M436 208L432.5 160.5L310.5 161C320.5 171.4 360 192.667 378.5 202C385.7 206.8 419.833 208 436 208Z","M331 175.5V161L311 161C313.8 164.6 325.5 172 331 175.5Z"],rect:null,circle:null,short_name_key:"part.frontRightWindow.short",long_name_key:"part.frontRightWindow.long"},{id:"rear-right-window",class:"rear-right-window",textX:480,textY:190,paths:["M446.5 160.5L448.5 207H493C503 207 510.833 205 513.5 204C524.7 198.8 541.167 172.833 548 160.5H446.5Z","M548 160.5H529V189C533 185 543.167 168.833 548 160.5Z"],rect:null,circle:null,short_name_key:"part.rearRightWindow.short",long_name_key:"part.rearRightWindow.long"},{id:"right-quarter-panel",class:"right-quarter-panel",textX:620,textY:140,paths:["M513.5 211C527.167 209.667 559.1 204.9 575.5 196.5C591.9 188.1 627.667 171.333 643.5 164C645.667 163.333 652.6 161.5 663 159.5C676 157 696 152.5 695.5 141C695.667 140.167 695.7 138.4 694.5 138C693.3 137.6 684.333 139.167 680 140L677 114H615.5C611.167 118.833 599.5 128 582 128C570 128 563.5 126.5 549 120C552.833 122.5 562.3 128.6 565.5 131C568.7 133.4 569.167 137.333 569 139C569 142 567 152.5 552.5 170C542 183.167 520.5 209 513.5 211ZM575.5 190.5C563.5 195 536 204 530 203.5L573 161C575 160.833 589.3 160.4 630.5 160C616.167 168.667 585.1 186.9 575.5 190.5Z"],rect:null,circle:null,short_name_key:"part.rightQuarterPanel.short",long_name_key:"part.rightQuarterPanel.long"},{id:"right-quarter-window",class:"right-quarter-window",textX:580,textY:180,paths:["M630.5 160C589.3 160.4 575 160.833 573 161L530 203.5C536 204 563.5 195 575.5 190.5C585.1 186.9 616.167 168.666 630.5 160Z"],rect:null,circle:null,short_name_key:"part.rightQuarterWindow.short",long_name_key:"part.rightQuarterWindow.long"},{id:"rear-right-bumper",class:"rear-right-bumper",textX:660,textY:100,paths:["M695.5 85C694.7 84.2 692.5 83.6667 691.5 83.5C686.5 83 686.5 76 684.5 71C682.9 67 677.833 66.3333 675.5 66.5H625C623.8 74.1 620.833 82.3333 619.5 85.5L695.5 85ZM695.5 85C696.833 86.1667 699.5 89.6 699.5 94C699.5 99.5 699 109.5 689 112.5C687.929 112.821 684 114 672 114H615.5C620.5 108.5 627.9 98.7 631.5 85.5L695.5 85Z"],rect:null,circle:null,short_name_key:"part.rearRightBumper.short",long_name_key:"part.rearRightBumper.long"},{id:"right-fender",class:"right-fender",textX:220,textY:141,paths:["M295.5 85.4999C288.058 124.668 295.989 154.567 301.173 165.339C301.262 165.524 301.059 165.721 300.882 165.617C286.901 157.394 235.106 153.977 209.5 152.5C188.7 151.3 163.167 141.667 153 137L174 135L166.5 113.5H196.5C205.3 124.3 223.167 128 231 128.5C267.8 130.9 285 100.833 289 85.4999H295.5Z"],rect:null,circle:null,short_name_key:"part.rightFender.short",long_name_key:"part.rightFender.long"},{id:"rear-left-wheel",class:"rear-left-wheel",textX:576,textY:513,paths:["M575.5 474.7C595.935 474.7 612.5 491.265 612.5 511.7C612.5 532.134 595.935 548.7 575.5 548.7C555.065 548.7 538.5 532.134 538.5 511.7C538.5 491.265 555.065 474.7 575.5 474.7ZM575.5 488.7C562.797 488.7 552.5 498.997 552.5 511.7C552.5 524.402 562.797 534.7 575.5 534.7C588.203 534.7 598.5 524.402 598.5 511.7C598.5 498.997 588.203 488.7 575.5 488.7Z"],rect:null,circle:null,short_name_key:"part.rearLeftWheel.short",long_name_key:"part.rearLeftWheel.long"},{id:"front-left-wheel",class:"front-left-wheel",textX:234,textY:513,paths:["M234.5 474.7C254.935 474.7 271.5 491.265 271.5 511.7C271.5 532.134 254.935 548.7 234.5 548.7C214.065 548.7 197.5 532.134 197.5 511.7C197.5 491.265 214.065 474.7 234.5 474.7ZM234.5 488.7C221.797 488.7 211.5 498.997 211.5 511.7C211.5 524.402 221.797 534.7 234.5 534.7C247.203 534.7 257.5 524.402 257.5 511.7C257.5 498.997 247.203 488.7 234.5 488.7Z"],rect:null,circle:null,short_name_key:"part.frontLeftWheel.short",long_name_key:"part.frontLeftWheel.long"},{id:"front-left-bumper",class:"front-left-bumper",textX:160,textY:500,paths:["M190 502.5C188 507.7 186.167 516.833 185.5 521H153L144 502.5H144.5C140.667 502.333 134 501 134 497V481C134 477.134 137.134 474 141 474H147.5H195C190 479.5 182.1 490.9 180.5 502.5H190Z","M144.5 502.5H180.5C182.5 491.5 189 480.5 195 474H147.5H141C137.134 474 134 477.134 134 481V488V497C134 501 140.667 502.333 144.5 502.5Z"],rect:null,circle:null,short_name_key:"part.frontLeftBumper.short",long_name_key:"part.frontLeftBumper.long"},{id:"left-running-panel",class:"left-running-panel",textX:400,textY:512,paths:["M528.5 520.7H282C281.6 513.1 278.833 504.866 277.5 501.7H533.5L533.381 502.105C530.931 510.432 528.828 517.583 528.5 520.7Z"],rect:null,circle:null,short_name_key:"part.leftRunningPanel.short",long_name_key:"part.leftRunningPanel.long"},{id:"front-left-door",class:"front-left-door",textX:350,textY:450,paths:["M372.641 380.835C385.441 374.436 424.167 373.7 442 374.2L439 425.2C437.833 436.366 435.5 455.2 436 473.7C436.333 479.533 438.5 491.7 440.5 501.7H294.5C286.9 462.5 294.833 432.201 300 421.701L372.641 380.835ZM435 379.2C419.351 379.2 386.608 379.618 379 384.7C359.5 393.7 321.845 414.821 309.745 426.2L431.5 426.7L435 379.2Z"],rect:null,circle:null,short_name_key:"part.frontLeftDoor.short",long_name_key:"part.frontLeftDoor.long"},{id:"rear-left-door",class:"rear-left-door",textX:480,textY:450,paths:["M442.489 374.199C476.
263 373.449 500.553 374.984 510.3 376.006L512.059 376.203L512.093 376.207L512.128 376.216C513.176 376.492 514.486 377.264 515.967 378.373C517.463 379.492 519.182 380.991 521.058 382.774C524.813 386.341 529.227 391.073 533.788 396.244C542.34 405.941 551.428 417.213 557.684 425.318L558.907 426.908L558.916 426.922C560.424 429.184 562.788 433.006 564.727 437.124C566.656 441.219 568.206 445.693 567.999 449.228C567.755 453.375 564.452 456.301 559.641 459.554C554.77 462.849 548.239 466.549 541.012 472.278C532.586 480.213 527.142 488.633 523.67 501.033L523.568 501.396L523.19 501.397L440.559 501.701L440.504 501.261C440.081 497.882 439.526 495.659 438.848 492.498C438.171 489.337 437.38 485.276 436.504 478.261C435.497 470.208 435.876 459.54 436.627 449.412C437.376 439.302 438.505 429.617 439.002 423.658L442.029 374.21L442.489 374.199ZM447.521 380.2L445.477 426.7H546.877L546.429 425.945C542.431 419.197 536.831 409.783 530.835 401.44C527.836 397.269 524.732 393.355 521.672 390.172C518.618 386.995 515.577 384.512 512.702 383.243L512.685 383.235L512.668 383.229L512.093 383.036C508.897 382.013 500.881 380.2 491.5 380.2H447.521Z"],rect:null,circle:null,short_name_key:"part.rearLeftDoor.short",long_name_key:"part.rearLeftDoor.long"},{id:"front-left-window",class:"front-left-window",textX:400,textY:410,paths:["M435 379.2L431.5 426.7L309.5 426.2C319.5 415.8 359 394.533 377.5 385.2C384.7 380.4 418.833 379.2 435 379.2Z"],rect:null,circle:null,short_name_key:"part.frontLeftWindow.short",long_name_key:"part.frontLeftWindow.long"},{id:"rear-left-window",class:"rear-left-window",textX:490,textY:410,paths:["M445.5 426.7L447.5 380.2H492C502 380.2 509.833 382.2 512.5 383.2C523.7 388.4 540.167 414.366 547 426.7H445.5Z"],rect:null,circle:null,short_name_key:"part.rearLeftWindow.short",long_name_key:"part.rearLeftWindow.long"},{id:"left-quarter-panel",class:"left-quarter-panel",textX:630,textY:450,paths:["M512.5 376.2C526.167 377.533 558.1 382.3 574.5 390.7C590.9 399.1 626.667 415.866 642.5 423.2C644.667 423.866 651.6 425.7 662 427.7C675 430.2 695 434.7 694.5 446.2C694.667 447.033 694.7 448.8 693.5 449.2C692.3 449.6 683.333 448.033 679 447.2L676 473.2H614.5C610.167 468.366 598.5 459.2 581 459.2C569 459.2 562.5 460.7 548 467.2C551.833 464.7 561.3 458.6 564.5 456.2C567.7 453.8 568.167 449.866 568 448.2C568 445.2 566 434.7 551.5 417.2C541 404.033 519.5 378.2 512.5 376.2ZM574.5 396.7C562.5 392.2 535 383.2 529 383.7L572 426.2C574 426.366 588.3 426.8 629.5 427.2C615.167 418.533 584.1 400.3 574.5 396.7Z"],rect:null,circle:null,short_name_key:"part.leftQuarterPanel.short",long_name_key:"part.leftQuarterPanel.long"},{id:"left-quarter-window",class:"left-quarter-window",textX:580,textY:420,paths:["M629.5 427.2C588.3 426.8 574 426.367 572 426.2L529 383.7C535 383.2 562.5 392.2 574.5 396.7C584.1 400.3 615.167 418.533 629.5 427.2Z"],rect:null,circle:null,short_name_key:"part.leftQuarterWindow.short",long_name_key:"part.leftQuarterWindow.long"},{id:"rear-left-bumper",class:"rear-left-bumper",textX:658,textY:497,paths:["M694.5 502.2C693.7 503 691.5 503.533 690.5 503.7C685.5 504.2 685.5 511.2 683.5 516.2C681.9 520.2 676.833 520.866 674.5 520.7H624C622.8 513.1 619.833 504.866 618.5 501.7L694.5 502.2ZM694.5 502.2C695.833 501.033 698.5 497.6 698.5 493.2C698.5 487.7 698 477.7 688 474.7C686.929 474.378 683 473.2 671 473.2H614.5C619.5 478.7 626.9 488.5 630.5 501.7L694.5 502.2Z"],rect:null,circle:null,short_name_key:"part.rearLeftBumper.short",long_name_key:"part.rearLeftBumper.long"},{id:"left-fender",class:"left-fender",textX:210,textY:450,paths:["M294.5 501.7C287.058 462.532 294.989 432.633 300.173 421.86C300.262 421.676 300.059 421.479 299.882 421.583C285.901 429.805 234.106 433.222 208.5 434.7C187.7 435.9 162.167 445.533 152 450.2L173 452.2L165 474H195C203.8 463.2 222.167 459.2 230 458.7C266.8 456.3 284 486.366 288 501.7H294.5Z"],rect:null,circle:null,short_name_key:"part.leftFender.short",long_name_key:"part.leftFender.long"},{id:"rear-windshield-panel",class:"rear-windshield-panel",textX:400,textY:300,paths:["M639.375 200.523C639.451 200.509 639.529 200.54 639.574 200.603C651.912 217.805 655 244.022 655 255V323.5C655.398 348.594 645.253 374.448 640.065 384.375C640.025 384.452 639.941 384.489 639.855 384.474L539 366C534.2 352.4 532.667 330.833 532.5 322V256C533.5 244.5 536.5 229.5 540.5 219L639.375 200.523ZM604 215.5C598.4 215.1 591.333 216.333 588.5 217L
2544 228.5L541.5 240C539.9 249.2 539.5 257.5 539.5 260.5V322.5C539.1 331.7 541.667 349 543 356.5L579 364.5C593.4 367.7 602 368.833 604.5 369H625V215.5H604Z"],rect:null,circle:null,short_name_key:"part.rearWindshieldPanel.short",long_name_key:"part.rearWindshieldPanel.long"},{id:"wheel-mudguard",class:"wheel-mudguard",textX:400,textY:600,paths:["M576 468.7C549.2 469.9 536.5 491.2 533.5 501.7L523.5 501.7C528.5 484.2 540.8 462 576 459.2C611.2 456.4 626.5 487.5 630.5 501.7H618.5C606.9 472.9 585.333 467.7 576 468.7Z","M234.5 468.699C204.9 468.699 193.5 492.5 190 502.5H180.5C187.7 470.5 211.833 460.533 223 459.699C263.8 452.499 283.333 484.866 288 501.699L277.5 501.699C266.5 475.199 245.333 468.533 234.5 468.699Z","M577 118.5C550.2 117.3 537.5 96 534.5 85.5L524.5 85.5001C529.5 103 541.8 125.2 577 128C612.2 130.8 628 100.833 631.5 85.5H619.5C607.9 114.3 586.333 119.5 577 118.5Z","M235.5 118.5C205.9 118.5 194.5 95.0003 191 85.0002H181.5C188.7 117 212.833 126.667 224 127.5C264.8 134.7 284.333 102.334 289 85.5003L278.5 85.5003C267.5 112 246.333 118.667 235.5 118.5Z"],rect:null,circle:null,short_name_key:"part.wheelMudguard.short",long_name_key:"part.wheelMudguard.long"},{id:"indicators",class:"indicators",textX:120,textY:600,paths:[],rect:[{x:27.5,y:199.5,width:8,height:18,rx:4,stroke:"#666666"},{x:781.5,y:202.5,width:9,height:17,rx:4.5,stroke:"#666666"},{x:781.5,y:368.5,width:9,height:17,rx:4.5,stroke:"#666666"},{x:27.5,y:366.5,width:8,height:18,rx:4,stroke:"#666666"}],circle:null,short_name_key:"part.indicators.short",long_name_key:"part.indicators.long"},{id:"car-handles",class:"car-handles",textX:450,textY:200,paths:["M553 132H535.5C535 132.167 534 133.1 534 135.5C534 137.9 535 138.833 535.5 139H553C553.5 138.833 554.5 137.9 554.5 135.5C554.5 133.1 553.5 132.167 553 132Z","M425 132H407.5C407 132.167 406 133.1 406 135.5C406 137.9 407 138.833 407.5 139H425C425.5 138.833 426.5 137.9 426.5 135.5C426.5 133.1 425.5 132.167 425 132Z","M552 455.2H534.5C534 455.033 533 454.1 533 451.7C533 449.3 534 448.366 534.5 448.2H552C552.5 448.366 553.5 449.3 553.5 451.7C553.5 454.1 552.5 455.033 552 455.2Z","M267 138.5H259.5C259.167 138.333 258.5 137.5 258.5 135.5C258.5 133.5 259.167 132.667 259.5 132.5H267C267.333 132.667 268 133.5 268 135.5C268 137.5 267.333 138.333 267 138.5Z","M266 448.7H258.5C258.167 448.866 257.5 449.7 257.5 451.7C257.5 453.7 258.167 454.533 258.5 454.7H266C266.333 454.533 267 453.7 267 451.7C267 449.7 266.333 448.866 266 448.7Z","M424 455.2H406.5C406 455.033 405 454.1 405 451.7C405 449.3 406 448.366 406.5 448.2H424C424.5 448.366 425.5 449.3 425.5 451.7C425.5 454.1 424.5 455.033 424 455.2Z"],rect:null,circle:null,short_name_key:"part.carHandles.short",long_name_key:"part.carHandles.long"},{id:"lines",class:"lines",textX:0,textY:0,paths:["M291 474L436 474","M540 113L444.695 113L437 113","M436 474H539","M437 113L303.758 113L293 113"],rect:null,circle:null,short_name_key:"part.lines.short",long_name_key:"part.lines.long"}],Rt=["direction","language","initialSelectedParts","onSelectionChange","theme","fillColor","strokeColor","tooltipBgColor","tooltipTextColor","tooltipFontSize","selectedStrokeColor","selectedTextColor","isMobile"],Et="car-part-selector-data",Ot=(0,n.forwardRef)((e,t)=>{const r=e.direction,a=void 0===r?"ltr":r,o=e.language,s=void 0===o?"en":o,i=e.initialSelectedParts,l=void 0===i?[]:i,u=e.onSelectionChange,h=e.theme,p=e.fillColor,g=void 0===p?"rgba(255, 107, 53, 0.3)":p,d=e.strokeColor,f=void 0===d?"#000000":d,m=e.tooltipBgColor,y=void 0===m?"#fff7f0":m,x=e.tooltipTextColor,v=void 0===x?"#FF6B35":x,C=(e.tooltipFontSize,e.selectedStrokeColor),b=void 0===C?"#FF0000":C,L=e.selectedTextColor,k=void 0===L?"#FF0000":L,w=e.isMobile,S=void 0!==w&&w,_=((0,c.A)(e,Rt),(0,n.useState)(()=>{const e=sessionStorage.getItem(Et);if(!e)return l;try{const t=JSON.parse(e);return t&&Array.isArray(t.selectedParts)?t.selectedParts.map(e=>e.id):Array.isArray(t)?t:l}catch(t){return l}})),R=_[0],E=_[1],O=wt().t,N=(0,n.useRef)(null);(0,n.useEffect)(()=>{St.changeLanguage(s)},[s]);const A=async(e,t)=>{const r=e.querySelector("svg");if(!r)return null;const n=r.cloneNode(!0);n.style.transform="none",n.style.transformOrigin="unset",n.style.position="static",n.setAttribute("width","890"),n.setAttribute("height","600");const a=(new XMLSerializer).serializeToString(n),o=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),s=URL.createObjectURL(o);return new Promise((e,t)=>
2{const r=new Image;r.onload=()=>{const t=document.createElement("canvas");t.width=890,t.height=600;const n=t.getContext("2d");n.fillStyle="white",n.fillRect(0,0,890,600),n.drawImage(r,0,0,890,600),URL.revokeObjectURL(s);const a=t.toDataURL("image/jpeg",.95);e(a)},r.onerror=e=>{URL.revokeObjectURL(s),t(e)},r.src=s})},P=h||(0,D.A)({direction:a}),H=e=>{E(t=>t.includes(e)?t.filter(t=>t!==e):[].concat((0,V.A)(t),[e]))},I=()=>_t.filter(e=>R.includes(e.id)).map(e=>Object.assign({},e,{shortName:{en:O(e.short_name_key,{lng:"en"}),ar:O(e.short_name_key,{lng:"ar"})},longName:{en:O(e.long_name_key,{lng:"en"}),ar:O(e.long_name_key,{lng:"ar"})}}));return(0,n.useEffect)(()=>{(async()=>{await new Promise(e=>requestAnimationFrame(e)),await new Promise(e=>requestAnimationFrame(e)),await new Promise(e=>setTimeout(e,150));let e=null;if(N.current)try{e=await A(N.current)}catch(n){}const t=I(),r={selectedParts:t,screenshot:e,timestamp:Date.now()};sessionStorage.setItem(Et,JSON.stringify(r)),u&&u(t)})()},[R]),(0,n.useImperativeHandle)(t,()=>({getSelectionData:async()=>{await new Promise(e=>requestAnimationFrame(e)),await new Promise(e=>requestAnimationFrame(e)),await new Promise(e=>setTimeout(e,150));let e=null;if(N.current)try{e=await A(N.current)}catch(r){}const t={selectedParts:I(),screenshot:e,timestamp:Date.now()};return sessionStorage.setItem(Et,JSON.stringify(t)),t},clearAll:()=>{E([]),sessionStorage.removeItem(Et)}})),n.createElement(ne,{theme:P},n.createElement(ie,null),n.createElement("div",{className:S?"car-selector-mobile":"car-selector-desktop",style:{display:"inline-block",width:"100%",height:"50vh",overflow:"visible"},ref:N},S?n.createElement("svg",{viewBox:"0 0 890 600",style:{width:"100%",height:"100%",transform:"rotate(90deg) scale(1.9)",transformOrigin:"center center",backgroundColor:"white"}},_t.map(e=>n.createElement("g",{key:e.id,className:"partGroup"},e.paths.map((t,r)=>n.createElement("path",{key:r,className:"partPath",d:t,fill:R.includes(e.id)?g:"transparent",stroke:f,style:{pointerEvents:"none"}})),e.rect&&(Array.isArray(e.rect)?e.rect.map((t,r)=>n.createElement("rect",{key:r,x:t.x,y:t.y,width:t.width,height:t.height,fill:R.includes(e.id)?g:"transparent",stroke:f,style:{pointerEvents:"none"}})):n.createElement("rect",{x:e.rect.x,y:e.rect.y,width:e.rect.width,height:e.rect.height,fill:R.includes(e.id)?g:"transparent",stroke:f,style:{pointerEvents:"none"}})),Array.isArray(e.circle)&&e.circle.map((t,r)=>n.createElement("circle",{key:r,cx:t.cx,cy:t.cy,r:t.r,fill:R.includes(e.id)?g:"transparent",stroke:f,style:{pointerEvents:"none"}})),!["part.indicators.short","part.wheelMudguard.short","part.rearWindshieldPanel.short","part.carHandles.short","part.lines.short"].includes(e.short_name_key)&&n.createElement(le.A,{title:n.createElement("span",{className:"tooltipContent",style:{color:v,fontSize:"12px",fontFamily:"'Aller', sans-serif"}},O(e.long_name_key)),placement:"top",arrow:!0,enterTouchDelay:0,leaveTouchDelay:3e3,componentsProps:{tooltip:{sx:{backgroundColor:"#fff",padding:"6px 14px",borderRadius:"6px",boxShadow:"0 2px 18px rgba(0,0,0,0.23)",fontFamily:"'Aller', sans-serif"}},arrow:{sx:{color:y}}}},n.createElement("g",{onClick:()=>H(e.id),role:"button",tabIndex:0,"aria-label":O(e.long_name_key),onKeyDown:t=>"Enter"===t.key&&H(e.id),style:{pointerEvents:"auto",cursor:"pointer"},transform:e.rotation?"rotate("+e.rotation+" "+e.textX+" "+e.textY+")":void 0},n.createElement("rect",{x:e.textX-25,y:e.textY-11,width:50,height:20,fill:"white",stroke:R.includes(e.id)?b:"#000000",strokeWidth:"1",rx:"5"}),n.createElement("text",{x:e.textX,y:e.textY,className:"partLabel",textAnchor:"middle",dominantBaseline:"middle",style:{fill:R.includes(e.id)?k:"#000000",fontWeight:"500",fontSize:"12px",userSelect:"none",pointerEvents:"none"}},O(e.short_name_key))))))):n.createElement("svg",{viewBox:"0 0 890 600",style:{width:"100%",height:"100%",backgroundColor:"white",transform:"none",transformOrigin:"center center"}},_t.map(e=>n.createElement("g",{key:e.id,className:"partGroup"},e.paths.map((t,r)=>n.createElement("path",{key:r,className:"partPath",d:t,fill:R.includes(e.id)?g:"transparent",stroke:f,style:{pointerEvents:"none"}})),e.rect&&(Array.isArray(e.rect)?e.rect.map((t,r)=>n.createElement("rect",{key:r,x:t.x,y:t.y,width:t.width,height:t.height,fill:R.includes(e.id)?g:"transparent",stroke:f,style:{pointerEvents:"none"}})):n.createElement("rect",{x:e.rect.x,y:e.rect.y,width:e.rect.width,height:e.rect.height,fill:R.includes(e.id)?g:"transparent",stroke:f,style:{pointerEvents:"none"}})),Array.isArray(e.circle)&&e.circle.map((t,r)=>n.createElement("circle",{key:r,cx:t.cx,cy:t.cy,r:t.r,fill:R.includes(e.id)?g:"transparent",stroke:f,style:{pointerEvents:"none"}})),!["part.indicators.short","part.wheelMudguard.short","part.rearWindshieldPanel.short","part.carHandles.short","part.lines.short"].includes(e.short_name_key)&&n.createElement(le.A,{title:n.createElement("span",{className:"tooltipContent",style:{color:v,fontSize:"16px",fontFamily:"'Aller', sans-serif"}},O(e.long_name_key)),placement:"top",arrow:!0,enterTouchDelay:0,leaveTouchDelay:3e3,componentsProps:{tooltip:{sx:{backgroundColor:"#fff",padding:"6px 14px",borderRadius:"6px",boxShadow:"0 2px 18px rgba(0,0,0,0.23)",fontFamily:"'Aller', sans-serif"}},arrow:{sx:{color:y}}}},n.createElement("g",{onClick:()=>H(e.id),role:"button",tabIndex:0,"aria-label":O(e.long_name_key),onKeyDown:t=>"Enter"===t.key&&H(e.id),style:{pointerEvents:"auto",cursor:"pointer"},transform:e.rotation?"rotate("+e.rotation+" "+e.textX+" "+e.textY+")":void 0},n.createElement("rect",{x:e.textX-25,y:e.textY-11,width:50,height:20,fill:"white",stroke:R.includes(e.id)?b:"#000000",strokeWidth:"1",rx:"5"}),n.createElement("text",{x:e.textX,y:e.textY,className:"partLabel",textAnchor:"middle",dominantBaseline:"middle",style:{fill:R.includes(e.id)?k:"#000000",fontWeight:"500",fontSize:"12px",userSelect:"none",pointerEvents:"none"}},O(e.short_name_key)))))))))});var Nt=Ot;var At=(0,n.forwardRef)((e,t)=>{const r=e.language,a=void 0===r?"ar":r,o=(0,n.useRef)(null),s=(0,n.use
2State)(!1),i=s[0],l=s[1];return(0,n.useEffect)(()=>{const e=()=>l(window.innerWidth<=430);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,n.useImperativeHandle)(t,()=>({getSelectionData:async()=>o.current?await o.current.getSelectionData():null,clearAll:()=>{o.current&&o.current.clearAll&&o.current.clearAll()}})),n.createElement("div",{className:"appContainer"},n.createElement(Nt,{ref:o,direction:"ltr",language:a,fillColor:"rgba(255, 204, 204, 1)",strokeColor:"#666666",tooltipBgColor:"#fff",tooltipTextColor:"#666666",tooltipFontSize:"24px",selectedStrokeColor:"#FF0000",selectedTextColor:"#FF0000",onSelectionChange:e=>{},isMobile:i}))}),Pt=r(25548);var Ht=e=>{let t=e.carSketchRef,r=e.lang,s=void 0===r?"en":r;const c=e=>{var t;return(null===(t=Pt[e])||void 0===t?void 0:t[s])||e};(0,a.useLocation)().pathname.split("/")[1];return n.createElement(o.A,{component:"section"},n.createElement(i.Ay,{container:!0,spacing:3},n.createElement(i.Ay,{item:!0,xs:12,md:12},n.createElement(l.A,{elevation:1,sx:Object.assign({display:"flex",flexDirection:"column",overflow:"hidden"},F.L5.paper)},n.createElement(i.Ay,{container:!0,columnSpacing:2,alignItems:"center",justifyContent:"space-between"},n.createElement(i.Ay,{item:!0,xs:12,md:!0},n.createElement(I.A,{variant:"h2",sx:Object.assign({},F.L5.h2,{mb:1})},c("label_mark_damage_header")),n.createElement(I.A,{variant:"body1",sx:Object.assign({},F.L5.p)},c("label_mark_damage_desc"))),n.createElement(i.Ay,{item:!0,xs:"auto"},n.createElement(T.A,{onClick:()=>{t.current&&t.current.clearAll&&t.current.clearAll(),window.dispatchEvent(new Event("clearAllDamages"))},sx:{p:0,textTransform:"none",fontSize:"16px",fontWeight:"bold",textDecoration:"underline",color:"rgba(0,0,0, 0.8)"}},c("btn_clear_all")))),n.createElement(At,{ref:t,language:s})))))},It=(r(33856),r(12012)),Mt=r(20214),Ft=r(73357);var jt=e=>{let t=e.selectedData,r=e.onClose,a=e.onConfirm,o=e.language,s=void 0===o?"en":o,i=e.isSubmitting,l=void 0!==i&&i;return n.createElement("div",{dir:"ar"===s?"rtl":"ltr",style:{display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:0,left:0,width:"100vw",height:"100vh",background:"rgba(0,0,0,0.4)",zIndex:999}},n.createElement("div",{className:"popup",dir:"ar"===s?"rtl":"ltr"},n.createElement("div",{className:"head"},n.createElement("div",{className:"title"},"ar"===s?"تأÙÙØ¯ Ø§ÙØ£Ø¬Ø²Ø§Ø¡ Ø§ÙØªØ§ÙÙØ© اÙÙ
ØØ¯Ø¯Ø©":"Confirm the selected damaged parts"),n.createElement("button",{className:"closeButton",onClick:r,"aria-label":"Close",disabled:l},"Ã")),n.createElement("ul",{className:"list"},t.selectedParts.map(e=>n.createElement("li",{key:e.id,className:"listItem"},e.shortName[s]," - ",e.longName[s]))),n.createElement("div",{className:"buttonRow"},n.createElement("button",{className:"popupButton",onClick:r,disabled:l},"ar"===s?"Ø¥ÙØºØ§Ø¡":"Cancel"),n.createElement("button",{className:"popupButton",onClick:a,disabled:l,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",opacity:l?.7:1,cursor:l?"not-allowed":"pointer"}},l&&n.createElement(Ft.A,{size:16,sx:{color:"white",marginRight:"ar"===s?"0":"4px",marginLeft:"ar"===s?"4px":"0"}}),l?"ar"===s?"جار٠اÙÙ
Ø¹Ø§ÙØ¬Ø©...":"Processing...":"ar"===s?"تأÙÙØ¯ ÙÙ
تابعة":"Confirm & Next"))))},Tt=r(15502),Vt=r(64685),Dt=(r(13903),r(88169)),$t=r(25225),Wt=r(12876),Bt=r(46833),Zt=r(84166);const zt="livaomanprod",Yt="lmoPjQa8s05QC5b98FwhVHBARVdQSHe7te3NFkkK",Xt="livaomanprod",Ut="lmoPjQa8s05QC5b98FwhVHBARVdQSHe7te3NFkkK";var Kt=r(16474),qt=r(69890),Qt=(r(26910),r(98750));const Jt=["Al Hail","Bani Buali","Barka","Bidaya","Buraimi","Fanja","Ghala","Ibra","Ibri","Mabella","Musannah","Nizwa","Rustaq","Salalah","Sinaw","Sohar","Sur","Suwaiq","Wadikabir"],Gt=(e,t)=>{const r=Qt.H.find(t=>t.nameEn.toLowerCase()===e.toLowerCase());return{label:"ar"===t?(null==r?void 0:r.nameAr)||e:(null==r?void 0:r.nameEn)||e,value:e}};var er=function(e,t){void 0===t&&(t="en");const r=(0,n.useMemo)(()=>{try{const r=sessionStorage.getItem("journeyType"),n=(()=>{try{const e=sessionStorage.getItem("preferredLocations");return JSON.parse(e)||null}catch(e){return null}})();let a=Array.isArray(n)?n:null,o={};if(o="retrieve"===r?JSON.parse(sessionStorage.getItem("retrieveData")||"{}"):JSON.parse(sessionStorage.getItem("policyDetails")||"{}"),a||(a=o.preferredLocations),Array.isArray(a)&&a.length>0){const r=(0,V.A)(a).sort((e,t)=>
2e.localeCompare(t));return[{label:e,value:"Select Location"}].concat((0,V.A)(r.map(e=>Gt(e,t))))}}catch(r){}return[{label:e,value:"Select Location"}].concat((0,V.A)(Jt.map(e=>Gt(e,t))))},[e,t]);return r},tr=r(66993);var rr=e=>{let t=e.value,r=e.onChange,a=e.t,o=e.repairerRef,s=e.lang;const i=er(a("placeholder_select_location"),s);return n.createElement(l.A,{ref:o,sx:{p:3}},n.createElement(I.A,{variant:"h6",gutterBottom:!0},a("label_repairer_location")),n.createElement(Kt.A,{options:i,value:t,onChange:r,popupIcon:n.createElement("img",{src:tr.A,alt:"dropdown"}),renderInput:e=>n.createElement(qt.A,Object.assign({},e,{label:a("placeholder_select_location")})),getOptionLabel:e=>e.label,isOptionEqualToValue:(e,t)=>e.value===t.value}))};const nr={retrieve:{sessionKey:"retrieveSessionToken",claimRefSource:"retrieveData",getClaimRef:e=>null==e?void 0:e.ClaimRefNumber,requiresPayment:!0,skipFraudCheck:!0,showClaimRefInSummary:!0,isNonPayment:!1,summaryItems:(e,t,r,n,a)=>{const o=(null==t?void 0:t.ClaimRefNumber)||"N/A";return[{label:n("label_claim_ref_no"),value:o},{label:n("label_policy_number"),value:t.PolicyNumber||"N/A"},{label:n("label_excess_amount"),value:t.ExcessAmount?t.ExcessAmount+" OMR":"N/A"}]}},"tp-non-faulty":{sessionKey:"sessionToken",requiresPayment:!1,requiresRegistration:!0,showClaimRefInSummary:!1,isNonPayment:!0,summaryItems:(e,t,r,n,a)=>null!=a&&a.claimNumber?[{label:n("label_claim_number"),value:a.claimNumber},{label:n("label_excess_amount"),value:"0 OMR ("+n("label_tp_non_fault")+")"}]:[{label:n("label_policy_number"),value:e.policyNumber||"N/A"},{label:n("label_excess_amount"),value:"0 OMR ("+n("label_tp_non_fault")+")"}]},"liva-non-faulty":{sessionKey:"sessionToken",requiresPayment:!1,requiresRegistration:!1,showClaimRefInSummary:!1,isNonPayment:!0,summaryItems:(e,t,r,n,a)=>null!=a&&a.claimNumber?[{label:n("label_claim_number"),value:a.claimNumber},{label:n("label_excess_amount"),value:"0 OMR ("+n("label_liva_non_fault")+")"}]:[{label:n("label_policy_number"),value:e.policyNumber||"N/A"},{label:n("label_excess_amount"),value:"0 OMR ("+n("label_liva_non_fault")+")"}]},default:{sessionKey:"sessionToken",claimRefSource:"claimRegistrationResponse",getClaimRef:e=>{var t,r;return null==e||null===(t=e.result)||void 0===t||null===(r=t.data)||void 0===r?void 0:r.claimRefNo},requiresPayment:!0,skipFraudCheck:!1,showClaimRefInSummary:!1,isNonPayment:!1,summaryItems:(e,t,r,n,a)=>{var o,s,i;const l=[{label:n("label_policy_number"),value:e.policyNumber||"N/A"},{label:n("label_excess_amount"),value:e.excessAmount?e.excessAmount+" OMR":"N/A"}];return null!=r&&null!==(o=r.result)&&void 0!==o&&o.success&&null!=r&&null!==(s=r.result)&&void 0!==s&&null!==(i=s.data)&&void 0!==i&&i.claimRefNo&&l.unshift({label:n("label_claim_ref_no"),value:r.result.data.claimRefNo}),l}}};var ar=e=>{let t=e.lang,r=void 0===t?"en":t;const c=e=>{var t;return(null===(t=Pt[e])||void 0===t?void 0:t[r])||e},u=(0,j.C)().journey,h=((0,a.useLocation)(),(0,n.useRef)(null)),p=(0,n.useRef)(null),g=(0,n.useState)({label:c("placeholder_select_location"),value:"Select Location"}),d=g[0],f=g[1],m=(0,n.useState)(!1),y=m[0],x=m[1],v=(0,n.useState)(!1),C=v[0],b=v[1],L=(0,n.useState)(!1),k=L[0],w=L[1],S=(0,n.useState)(0),_=S[0],R=S[1],E=(0,n.useState)(!1),O=(E[0],E[1]),N=(0,n.useState)(!1),A=N[0],P=N[1],T=(0,n.useState)(null),V=T[0],D=T[1],$=(0,n.useState)(!1),W=$[0],B=$[1],Z=(0,n.use
2State)([]),z=Z[0],Y=Z[1],X=nr[u]||nr.default,U=sessionStorage.getItem(X.sessionKey),K=()=>{try{var e;const t=sessionStorage.getItem("car-part-selector-data");return t&&(null===(e=JSON.parse(t))||void 0===e?void 0:e.selectedParts)||[]}catch(t){return[]}},q=()=>{sessionStorage.setItem("markDamagesCompleted","true"),U&&sessionStorage.setItem("markDamagesCompleted_"+U,"true"),sessionStorage.setItem("markDamagesCompletedAt",(new Date).toISOString())},Q=async function(e){void 0===e&&(e="change");const t=sessionStorage.getItem("markDamageScreenshotS3");if(t&&U)try{await(0,Bt.Y)({sessionToken:U,stage:"markDamage",journey:u||"non-tp",s3Keys:[t]}),sessionStorage.removeItem("markDamageScreenshotS3")}catch(r){}};(0,n.useEffect)(()=>{("true"===sessionStorage.getItem("markDamagesCompleted")||U&&"true"===sessionStorage.getItem("markDamagesCompleted_"+U))&&(M.oR.warn(n.createElement(Vt.MY,{title:c("msg_already_completed"),description:c("msg_redirecting")})),setTimeout(()=>(0,a.navigate)("/"+r+"/claims/claim-success?sessionId="+U),1500))},[U,r]),(0,n.useEffect)(()=>{"retrieve"===u?sessionStorage.getItem("retrieveData")&&sessionStorage.getItem("retrieveSessionToken")||(M.oR.warn(n.createElement(Vt.MY,{title:c("msg_invalid_session"),description:c("msg_please_retrieve_again")})),setTimeout(()=>(0,a.navigate)("/"+r+"/claims/retrieve"),1500)):sessionStorage.getItem("accidentDetails")&&sessionStorage.getItem("uploadedFiles")||(0,a.navigate)("/"+r+"/claims/accident-details")},[u,r]),(0,n.useEffect)(()=>{"Y"===sessionStorage.getItem("fraudStatus")&&B(!0)},[]),(0,n.useEffect)(()=>{const e=JSON.parse(sessionStorage.getItem("policyDetails")||"{}"),t="retrieve"===u?JSON.parse(sessionStorage.getItem("retrieveData")||"{}"):null,r="retrieve"!==u?JSON.parse(sessionStorage.getItem("claimRegistrationResponse")||"{}"):null,n=JSON.parse(sessionStorage.getItem("accidentDetails")||"{}"),a=(X.summaryItems||nr.default.summaryItems)(e,t,r,c,n);Y(a)},[u,r,X,c]),(0,n.useEffect)(()=>{const e=()=>{const e=K();k&&e.length!==_&&(x(!1),w(!1),R(0),Q("parts changed")),O(e.length>0)};e();const t=setInterval(e,500);return()=>clearInterval(t)},[k,_]),(0,n.useEffect)(()=>{const e=()=>{k&&(x(!1),w(!1),R(0),Q("clear all clicked"))};return window.addEventListener("clearAllDamages",e),()=>{window.removeEventListener("clearAllDamages",e)}},[k]);return n.createElement(o.A,{sx:{mt:8}},n.createElement(o.A,{sx:Object.assign({},F.L5.container)},n.createElement(s.A,{maxWidth:"lg"},n.createElement(i.Ay,{container:!0,spacing:3},n.createElement(i.Ay,{item:!0,xs:12,md:9},n.createElement(o.A,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column"}},n.createElement(Ht,{carSketchRef:h,lang:r,sx:{flex:1}}))),n.createElement(i.Ay,{item:!0,xs:12,md:3},n.createElement(o.A,{sx:{display:"flex",flexDirection:"column",gap:3}},n.createElement(rr,{repairerRef:p,value:d,onChange:(e,t)=>
2{f(t),k&&(x(!1),w(!1),Q("location changed"))},t:c,lang:r}),n.createElement(Mt.A,{title:c("label_claim_summary"),data:z,isEditable:!1,lang:r}),n.createElement(l.A,{sx:{p:2}},n.createElement(o.A,{display:"flex",alignItems:"flex-start",gap:2},n.createElement(H,{checked:y,onChange:e=>{if(!e.target.checked)return x(!1),void(k&&(w(!1),R(0),Q("declaration unchecked")));const t=K();if(0!==t.length){var r;if("Select Location"===d.value)return M.oR.warn(n.createElement(Vt.MY,{title:c("msg_location_required"),description:c("msg_select_repairer_location")})),void(null===(r=p.current)||void 0===r||r.scrollIntoView({behavior:"smooth"}));D({selectedParts:t}),x(!0),P(!0)}else M.oR.warn(n.createElement(Vt.MY,{title:c("msg_no_damage_selected"),description:c("msg_mark_at_least_one")}))}}),n.createElement(o.A,null,n.createElement(I.A,{fontWeight:"bold",fontSize:14},c("label_declaration")),n.createElement(I.A,{fontSize:12,color:"#999999",lineHeight:1.6},c("msg_declaration_text"))))))))),n.createElement(It.A,{nextButtonText:C?c("btn_processing"):X.isNonPayment?c("btn_submit_claim"):c("btn_proceed_payment"),onNextClick:async()=>{if(k){b(!0);try{if("tp-non-faulty"===u){var e,t,o,s,i;const r=JSON.parse(sessionStorage.getItem("policyDetails")||"{}"),n=JSON.parse(sessionStorage.getItem("accidentDetails")||"{}"),a=await(0,$t.e)(Object.assign({sessionToken:U,journey:"tp-non-faulty"},r,n));if(null===(e=a.result)||void 0===e||!e.success)throw new Error((null===(t=a.result)||void 0===t?void 0:t.message)||"Registration failed");sessionStorage.setItem("claimRegistrationResponse",JSON.stringify(a));const l=(null===(o=a.result)||void 0===o?void 0:o.itemindex)||(null===(s=a.result)||void 0===s||null===(i=s.data)||void 0===i?void 0:i.itemindex);await(0,Wt.G)({sessionToken:U,journey:"tp-non-faulty",folderIndex:l}).catch(()=>{})}if("retrieve"===u){var l;const e=JSON.parse(sessionStorage.getItem("retrieveData")||"{}"),t=(null==e?void 0:e.itemindex)||(null==e||null===(l=e.data)||void 0===l?void 0:l.itemindex);t&&await(0,Wt.G)({sessionToken:U,journey:"retrieve",folderIndex:t}).catch(()=>{})}if(X.requiresPayment){const e=X.claimRefSource,t=JSON.parse(sessionStorage.getItem(e)||"{}"),a=X.getClaimRef(t);if(!a)throw new Error(c("error_claim_not_found"));const o=await(0,Dt.X)({sessionToken:U,journey:u,claimRefNo:a,successUrl:window.location.origin+"/"+r+"/claims/claim-success?sessionId="+U,cancelUrl:window.location.origin+"/"+r+"/claims/claim-failure?sessionId="+U});if(!o.success||!o.checkoutUrl)throw new Error(o.error||c("error_payment_init_failed"));q(),sessionStorage.setItem("paymentSessionId",o.paymentSessionId),sessionStorage.setItem("invoiceNo",o.invoiceNo),M.oR.success(n.createElement(Vt.rQ,{title:c("success_redirecting_payment")})),setTimeout(()=>window.location.href=o.checkoutUrl,1e3)}else q(),M.oR.success(n.createElement(Vt.rQ,{title:c("success_claim_submitted")})),setTimeout(()=>(0,a.navigate)("/"+r+"/claims/claim-success?sessionId="+U),1500)}catch(h){M.oR.warn(n.createElement(Vt.MY,{title:c("error"),description:h.message||c("error_something_wrong")}))}finally{b(!1)}}else M.oR.warn(n.createElement(Vt.MY,{title:c("msg_incomplete"),description:c("msg_save_damage_first")}))},nextDisabled:!k||C,nextButtonWidth:180,showLoader:C}),A&&V&&n.createElement(o.A,{sx:{position:"fixed",inset:0,bgcolor:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1300}},n.createElement(jt,{selectedData:V,onClose:()=>{P(!1),x(!1)},onConfirm:async()=>{b(!0);try{var e,t;if(!X.skipFraudCheck&&"Y"===sessionStorage.getItem("fraudStatus"))return M.oR.warn(n.createElement(Vt.MY,{title:c("label_fraud_alert"),description:c("msg_claim_under_review")})),void setTimeout(()=>(0,a.navigate)("/"+r+"/dashboard"),3e3);const o={markDamages:K().map(e=>{var t,r;return(null===(t=e.longName)||void 0===t?void 0:t.en)||(null===(r=e.shortName)||void 0===r?void 0:r.en)||e.id}),repairLocation:d.value,claimDeclaration:!0},s=await async function(e,t,r){void 0===t&&(t="non-tp"),void 0===r&&(r=null);try{let n=r;if(n||(n="retrieve"===t?sessionStorage.getItem("retrieveSessionToken"):sessionStorage.getItem("sessionToken")),!n)throw new Error("Session token not found. Please login again.");const a="https://app.livainsurance.om/parse/functions/SaveClaim",o={"X-Parse-Application-Id":zt,"X-Parse-Javascript-Key":Yt,"X-Parse-Session-Token":n,"Content-Type":"application/json"},s={_ApplicationId:zt,_JavaScriptKey:Yt,sessionToken:n,stage:"mark_damages",journey:t,markDamages:e.markDamages||[],repairLocation:e.repairLocation||"",claimDeclaration:e.claimDeclaration||!1};if("retrieve"===t){const e=JSON.parse(sessionStorage.getItem("retrieveData")||"{}").ClaimRefNumber;if(!e)throw new Error("Claim reference number not found for retrieve journey.");s.claimRefNo=e}return(await Zt.A.post(a,s,{headers:o})).data}catch(i){var n,a,o,s;throw new Error((null===(n=i.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.error)||(null===(o=i.response)||void 0===o||null===(s=o.data)||void 0===s?void 0:s.message)||i.message||"Failed to save mark damage details")}}(o,u,U);if(null===(e=s.result)||void 0===e||!e.success)throw new Error((null===(t=s.result)||void 0===t?void 0:t.message)||"Failed to save");(async function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null);try{var n,a;let o=t;if(o||(o="retrieve"===e?sessionStorage.getItem("retrieveSessionToken"):sessionStorage.getItem("sessionToken")),!o)throw new Error("Session token not found. Please login again.");const s=JSON.parse(sessionStorage.getItem("car-part-selector-data")||"{}");if(!s.screenshot)throw new Error("No screenshot found in car-part-selector-data");const i=s.screenshot.split(",")[1];if(!i)throw new Error("Invalid screenshot format");const l="https://app.livainsurance.om/parse/functions/UploadFileS3",c={"X-Parse-Application-Id":Xt,"X-Parse-Javascript-Key":Ut,"X-Parse-Session-Token":o,"Content-Type":"application/json"},u={_ApplicationId:Xt,_JavaScriptKey:Ut,stage:"mark_damages",journey:e,sessionToken:o,files:[{fileName:"mark-damages-screenshot.jpg",mimeType:"image/jpeg",base64:i}]};if("retrieve"===e){const e=JSON.parse(sessionStorage.getItem("retrieveData")||"{}"),t=r||(null==e?void 0:e.ClaimRefNumber);if(!t)throw new Error("Claim reference number not found for retrieve journey.");u.claimRefNo=t}const h=await Zt.A.post(l,u,{headers:c});if(null!==(n=h.data)&&void 0!==n&&null!==(a=n.result)&&void 0!==a&&a.data&&h.data.result.data.length>0){const e=h.data.result.data[0];sessionStorage.setItem("markDamageScreenshotS3",e)}return h.data}catch(c){var o,s,i,l;throw new Error((null===(o=c.response)||void 0===o||null===(s=o.data)||void 0===s?void 0:s.error)||(null===(i=c.response)||void 0===i||null===(l=i.data)||void 0===l?void 0:l.message)||c.message||"Failed to upload mark damage screenshot")}})(u).catch(()=>{}),w(!0),R(K().length),P(!1),M.oR.success(n.createElement(Vt.rQ,{title:c("success_saved"),description:c("success_damage_saved")}))}catch(o){M.oR.warn(n.createElement(Vt.MY,{title:c("error_save_failed"),description:o.message||c("error_fix_validation")}))}finally{b(!1)}},language:r,isSubmitting:C}))),W&&n.createElement(Tt.default,{onClose:()=>B(!1)}),n.createElement(Vt.HY,null))}},19888:function(e,t,r){"use strict";e.exports=r(58493)},34915:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},58493:function(e,t,r){"use strict";var n=r(96540);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,i=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(e,r)}catch(n){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),a=n[0].inst,u=n[1];
vendor: 297 bytes, lines 2-3
2return i(function(){a.value=r,a.getSnapshot=t,c(a)&&u({inst:a})},[e,r,t]),s(function(){return c(a)&&u({inst:a}),e(function(){c(a)&&u({inst:a})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u}}]); 3//# sourceMappingURL=2841-d3f88686877cab87166e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.